413 Error When Uploading bundle.js.map

@mstawick Can you shoot me over an email to support and include the information that you’ve censored out?

@matt Done, thanks. …

When uploading source maps.

We’re counting on sentry to track JS errors client-side, so I hope those reports aren’t getting 413s either, otherwise we’re blind to them.

I should mention that we don’t see those now, but I reported it when we did… I’d say it happens sporadically.

@gingerlime, that is an entirely different issue and unrelated to this.

@benvinegar knows when this happens. Usually it’s through user error and it’s pretty impossible to hit this limit just using raven-js as-is. It’s only extreme situations where you can construct a packet too large.

We’re seeing these 413 errors when uploading sourcemaps via sentry-cli also. The sourcemaps are between 6 and 8MB so we don’t think we’re actually hitting the size limit.

We have an on premise sentry install and first noticed the error on November 9th using sentry version 8.9.0. We upgraded to 8.10.0 on November 11th but are still getting this error.

We can provide logs if needed.

I answered benvinegar’s question. As I said, we were seeing it when uploading source maps.

The latest version of sentry-cli should log more if you enable debug logging. Can you run that again and paste what it spits out?

Our issue turned out to be nginx instead of sentry. We fixed it by adding

client_max_body_size 40M; 

to our nginx.conf file inside

http { ... }

and reloading.

Sorry for adding to the noise!

2 Likes

Hi there,
sorry to push this issue up again, but i still run into thie issue, file is too large.

I am running ionic3 on Ubuntu using the current version of sentry-cli.

`[INFO] sentry_cli::api request GET [URL]/api/0/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api > GET /api/0/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api < HTTP/1.1 200 OK
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:45:52 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 904
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api response: 200
[INFO] sentry_cli::api body: {“version”: “0”, “user”: {“username”: “[EMAIL]”, “emails”: [{“is_verified”: true, “id”: “8”, “email”: “[EMAIL]”}], “isManaged”: false, “lastActive”: “2018-01-28T09:18:41.199Z”, “identities”: , “id”: “6”, “isActive”: true, “has2fa”: false, “name”: “Batian Krone”, “avatarUrl”: “[URL]”, “dateJoined”: “2017-09-11T07:37:00.337Z”, “options”: {“timezone”: “UTC”, “seenReleaseBroadcast”: true, “stacktraceOrder”: “default”, “language”: “en”, “clock24Hours”: false}, “avatar”: {“avatarUuid”: null, “avatarType”: “letter_avatar”}, “lastLogin”: “2018-01-27T18:02:10.696Z”, “email”: “[EMAIL]”}, “auth”: {“scopes”: [“event:admin”, “event:read”, “member:read”, “org:read”, “project:read”, “project:releases”, “team:read”, “project:write”]}}
Sentry Server: [URL]
Default Organization: physikonline-iu
Default Project: po-app

Authentication Info:
Method: Auth Token
User: [EMAIL]
Scopes:
- event:admin
- event:read
- member:read
- org:read
- project:read
- project:releases
- team:read
- project:write`

If i try to push sourcemaps it stops at vendor.js.map (~5.2 mb) and i won’t be able to shrink it.

`sentry-cli releases files 0.0.1 upload-sourcemaps www/build
[INFO] sentry_cli::commands::releases found: www/build/sw-toolbox.js (15793 bytes)
[INFO] sentry_cli::commands::releases found: www/build/vendor.js.map (5166869 bytes)
[INFO] sentry_cli::commands::releases found: www/build/main.js (13403 bytes)
[INFO] sentry_cli::commands::releases found: www/build/vendor.js (4428857 bytes)
[INFO] sentry_cli::commands::releases found: www/build/main.css.map (4 bytes)
[INFO] sentry_cli::commands::releases found: www/build/main.js.map (8430 bytes)
[INFO] sentry_cli::commands::releases found: www/build/polyfills.js (97180 bytes)

Analyzing 7 sources
Adding source map references
[INFO] sentry_cli::api request POST [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending JSON data (41 bytes)
[INFO] sentry_cli::api > POST /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api > Content-Type: application/json
[INFO] sentry_cli::api > Content-Length: 41
[INFO] sentry_cli::api < HTTP/1.1 208 ALREADY REPORTED
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 367
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api response: 208
[INFO] sentry_cli::api body: {“lastDeploy”: null, “dateCreated”: “2018-01-28T09:06:48.721Z”, “lastEvent”: null, “shortVersion”: “0.0.1”, “authors”: , “owner”: null, “newGroups”: 0, “data”: {}, “projects”: [{“slug”: “[PROJECT]”, “name”: “[PROJECT]”}], “dateReleased”: null, “url”: null, “deployCount”: null, “commitCount”: null, “version”: “0.0.1”, “firstEvent”: null, “lastCommit”: null, “ref”: null}
[INFO] sentry_cli::api request GET [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api > GET /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api < HTTP/1.1 200 OK
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 1746
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < Vary: Accept-Encoding
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Link: <[URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/?&cursor=100:-1:1>; rel=“previous”; results=“false”; cursor=“100:-1:1”, <[URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/?&cursor=100:1:0>; rel=“next”; results=“false”; cursor=“100:1:0”
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api response: 200
[INFO] sentry_cli::api body: [{“sha1”: “2be88ca4242c76e8253ac62474851065032d6833”, “dist”: null, “name”: “/main.css.map”, “dateCreated”: “2018-01-28T09:18:23.171Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “16”, “size”: 4}, {“sha1”:“61ff541c4ac09ad0dcf016e0f1bb635b8f7ef316”, “dist”: null, “name”: “~/main.js”, “dateCreated”: “2018-01-28T09:30:17.684Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “23”, “size”: 13403}, {“sha1”: “61ff541c4ac09ad0dcf016e0f1bb635b8f7ef316”, “dist”: null, “name”: “/main.js”, “dateCreated”: “2018-01-28T09:18:22.873Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “15”, “size”: 13403}, {“sha1”: “23441562b333cd794147996087c8780d181b7511”, “dist”: null, “name”: “~/main.js.map”, “dateCreated”: “2018-01-28T09:30:17.977Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “24”, “size”: 8430}, {“sha1”: “23441562b333cd794147996087c8780d181b7511”, “dist”: null, “name”: “/main.js.map”, “dateCreated”: “2018-01-28T09:27:24.306Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “20”, “size”: 8430}, {“sha1”: “7eb8dde2d86846e296dd83d2075778247c6f3dbe”, “dist”: null, “name”: “/polyfills.js”, “dateCreated”: “2018-01-28T09:27:24.003Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “19”, “size”: 97180}, {“sha1”: “4f5ab2140180ce358c18c22379eb2e81f8ed180c”, “dist”: null, “name”: “~/sw-toolbox.js”, “dateCreated”: “2018-01-28T09:30:18.271Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “25”, “size”: 15793}, {“sha1”: “4f5ab2140180ce358c18c22379eb2e81f8ed180c”, “dist”: null, “name”: “/sw-toolbox.js”, “dateCreated”: “2018-01-28T09:18:13.533Z”, “headers”: {“Content-Type”: “application/octet-stream”}, “id”: “9”, “size”: 15793}]
Uploading source maps for release 0.0.1
~/sw-toolbox.js
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0/7
[INFO] sentry_cli::api request DELETE [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/25/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api > DELETE /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/25/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api < HTTP/1.1 204 NO CONTENT
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Length: 0
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, PUT, DELETE, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api response: 204
[INFO] sentry_cli::api body:
[INFO] sentry_cli::api request POST [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending form data
[INFO] sentry_cli::api > POST /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api > Content-Length: 16106
[INFO] sentry_cli::api > Content-Type: multipart/form-data; boundary=------------------------88aea13a1ccb6fed
[INFO] sentry_cli::api < HTTP/1.1 201 CREATED
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 220
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
~/main.css.map
████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 1/7
[INFO] sentry_cli::api request POST [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending form data
[INFO] sentry_cli::api > POST /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api > Content-Length: 315
[INFO] sentry_cli::api > Content-Type: multipart/form-data; boundary=------------------------72868230080fe310
[INFO] sentry_cli::api < HTTP/1.1 201 CREATED
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 215
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
~/main.js
████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 2/7
[INFO] sentry_cli::api request DELETE [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/23/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api > DELETE /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/23/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api < HTTP/1.1 204 NO CONTENT
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:25 GMT
[INFO] sentry_cli::api < Content-Length: 0
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, PUT, DELETE, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
[INFO] sentry_cli::api response: 204
[INFO] sentry_cli::api body:
[INFO] sentry_cli::api request POST [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending form data
[INFO] sentry_cli::api > POST /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api > Content-Length: 13704
[INFO] sentry_cli::api > Content-Type: multipart/form-data; boundary=------------------------5db87e19ef65f320
[INFO] sentry_cli::api < HTTP/1.1 201 CREATED
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:26 GMT
[INFO] sentry_cli::api < Content-Type: application/json
[INFO] sentry_cli::api < Content-Length: 214
[INFO] sentry_cli::api < Connection: keep-alive
[INFO] sentry_cli::api < X-XSS-Protection: 1; mode=block
[INFO] sentry_cli::api < Content-Language: en
[INFO] sentry_cli::api < X-Content-Type-Options: nosniff
[INFO] sentry_cli::api < Vary: Accept-Language, Cookie
[INFO] sentry_cli::api < Allow: GET, POST, HEAD, OPTIONS
[INFO] sentry_cli::api < X-Frame-Options: deny
~/vendor.js.map
████████████████████████████████████████████████████████████████████████████████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 3/7
[INFO] sentry_cli::api request POST [URL]/api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/
[INFO] sentry_cli::api using token authentication
[INFO] sentry_cli::api sending form data
[INFO] sentry_cli::api > POST /api/0/projects/[ORGANIZATION]/[PROJECT]/releases/0.0.1/files/ HTTP/1.1
[INFO] sentry_cli::api > Host: [URL]
[INFO] sentry_cli::api > Accept: /
[INFO] sentry_cli::api > User-Agent: sentry-cli/1.28.4
[INFO] sentry_cli::api > Authorization: Bearer c8af0095***
[INFO] sentry_cli::api > Content-Length: 5167182
[INFO] sentry_cli::api > Content-Type: multipart/form-data; boundary=------------------------233f3f9c86ba11ce
░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0B/4.93MB (0s)
[INFO] sentry_cli::api < HTTP/1.1 413 Request Entity Too Large
[INFO] sentry_cli::api < Server: nginx
[INFO] sentry_cli::api < Date: Sun, 28 Jan 2018 09:30:26 GMT
[INFO] sentry_cli::api < Content-Type: text/html
[INFO] sentry_cli::api < Content-Length: 659
[INFO] sentry_cli::api < Connection: close
[INFO] sentry_cli::api response: 413
[INFO] sentry_cli::api body:

The page you were looking for cannot be served (4xx) body { background-color: #6CABF7; color: #fff; text-align: center; font-family: arial, sans-serif; margin: 0; } div { position:absolute; top: 50%; left: 50%; transform: translateX(-50%) translateY(-50%); } p { color: #eee; }

The page you were looking for cannot be served.

If you are the application owner check the logs for more information.

error: http error: generic error (413)`

Thank you very much
Bastian