Techiio-author
Started by Debarghya DasSep 24, 2021

Open
Sentry source map upload issue | ReactJS

2 VIEWES 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 2 VIEWES SHARE

I am trying to integrate sentry in my react js application. Facing some issues uploading source maps - It gives me a 413 error - which implies the file size is too large. I got to know that the max size allowed is 20 MB but my source maps (all files combined) are less than 20 MB

Have tried uploading via two method -

  1. Sentry webpack plugin
  2. Sentry-cli

Still facing the same issue. Can someone help me

1 Replies

Techiio-commentatorMotiar Rahaman replied 23 days ago0 likes0 dislikes

413 status code is “Request Entity Too Large” – I’m guessing this means your source map file is too large. There is an upper limit of 20 MB at the moment.

You could try omitting sourcesContent (see your build config) to make your source map smaller in order to fit under the limit … but this will remove some context from stack traces.

or

Apparently we had two nginx instances: one was external and the other one was inside the Docker image.
Setting client_max_body_size to 100m on external nginx resolved this issue.

You must be Logged in to reply
Techiio-logo

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Developed and maintained by Wikiance
Developed and maintained by Wikiance