Skip to main content

Why am I seeing error "Invalid JSON data: Data too long" in my event breadcrumbs?

Updated over a month ago

Issue

In my event details Breadcrumbs I can see I am receiving this console error.

Screenshot 2024-04-25 at 10.22.43 AM.png

Applies To

  • Any Sentry User

  • Error Monitoring

  • Performance Monitoring

  • All SDKs that Support Breadcrumbs

Symptoms

  • Not able to view a field or fields in the event payload; the field(s) have been replaced with the error ""Invalid JSON data: Data too long".

Resolution

This error is as a result of event payload exceeding the allowed size; you can view the size limit details in our documentation here. If you're regularly exceeding this size limit a workaround for this would be to we suggest sending this to Sentry as `extra` data since the limit is higher (16kb).

Did this answer your question?