Skip to main content

[JavaScript] Why is the message in my error being truncated?

Updated over a month ago

Issue

I've captured a message using the JavaScript SDK, and it is coming through, but the message is being truncated to 250 characters even in the event's JSON. How do I see the rest of the message?

Applies To

  • Anyone using a JS SDK and can't see the entire message being captured

Resolution

The message is being truncated as there is a default limit of 250 characters. You can increase the default value with the maxValueLength option inside your Sentry.init(). There is a hard limit of 8192 characters.

Did this answer your question?