Skip to content

Conversation

@miquelbeltran
Copy link
Contributor

@miquelbeltran miquelbeltran commented Jul 4, 2025

This PR contains changes to remove the 512 message payload limit.

Closes #483

Changes

  • Adds examples/LargePayloadCrashReporting.html to test manually that the larger payload is supported
  • Removed the truncate code from src/raygun.js
  • Test implemented in tests/fixtures/v2/manualSendVeryLongMessage.html and tests/specs/v2/payloadLengthTests.js

Screenshot

Sending a very large payload on Raygun dashboard

image

@miquelbeltran miquelbeltran requested a review from Copilot July 4, 2025 07:47
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR removes the hard 512-character truncation on error messages and adds tests and examples to verify support for larger payloads.

  • Strip out the substring(0, 512) truncation in raygun.js.
  • Add a manual fixture and automated test for messages >1000 characters.
  • Provide an example HTML page demonstrating large-payload crash reporting.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/raygun.js Removed the 512-character substring truncation on finalMessage.
tests/specs/v2/payloadLengthTests.js Added an automated test to assert error messages exceed 1000 chars.
tests/fixtures/v2/manualSendVeryLongMessage.html New fixture page to manually send very long messages.
examples/LargePayloadCrashReporting.html Example demonstrating short, medium, and large error payloads.
Comments suppressed due to low confidence (2)

tests/fixtures/v2/manualSendVeryLongMessage.html:2

  • Add a lang attribute to the <html> element (e.g., <html lang="en">) to improve accessibility and help screen readers interpret the page language correctly.
<html>

examples/LargePayloadCrashReporting.html:7

  • Loading jQuery over HTTP can cause mixed-content errors and poses a security risk. Switch to HTTPS (https://code.jquery.com/...) to ensure a secure connection.
    <script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>

@miquelbeltran miquelbeltran marked this pull request as ready for review July 14, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Any way to send more than 512 characters ?

2 participants