-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to upload proguard file to Sentry (Error 413 File Too Large) #707
Comments
this looks like you're using a self-hosted version of Sentry. In this case I'd recommend checking with your infra team if you got enough storage for proguard mappings. I know of some customers that are uploading 500MB+ files just fine on sentry.io, so it must be something with your self-hosted version I believe. |
The relay docs also mention a file upload size limit, maybe that's the one you're hitting? |
Thanks @romtsn Could be a limit issue rather than a space issue? Basically for self hosted sentry is it possible to define limits for proguard files. If yes, which configuration do we need to update? |
Yeah, I think you can try to tweak the following config - |
Thanks @romtsn and @markushi I will close this issue and open another if we still face challenges with the file upload. |
Gradle Version
8.3
AGP Version
8.1.1
Code Minifier/Optimizer
R8
Version
4.5.1
Sentry SDK Version
7.9.0
Steps to Reproduce
When building a release version of the app, the build fails at task :uploadSentryProguardMappings.
When running the build again with debug option we are seeing that the sentry-cli fails with error 413 "File too large"
We tried uploading the same mapping file separately as well using the standalone sentry-cli and we are getting the same error.
The size of the uncompressed mapping file is 188 MB and when compressed it comes down to 11 MB (approx)
Below is the output of the sentry-cli
`sentry-cli upload-proguard app/build/outputs/mapping/devRelease/mapping.txt --project sbt-android --log-level debug
<title>413 Request Entity Too Large</title>DEBUG 2024-05-13 18:03:49.404793 +02:00 sentry-cli version: 2.31.2, platform: "darwin", architecture: "arm64"
INFO 2024-05-13 18:03:49.405465 +02:00 sentry-cli was invoked with the following command line: "sentry-cli" "upload-proguard" "app/build/outputs/mapping/devRelease/mapping.txt" "--project" "sbt-android" "--log-level" "debug"
DEBUG 2024-05-13 18:03:49.966442 +02:00 SHA1 for mapping file 'app/build/outputs/mapping/devRelease/mapping.txt': '05c630b6261522d56b72709e264da69d3cec2589'
413 Request Entity Too Large
nginx/1.18.0 (Ubuntu)
error: API request failed
caused by: sentry reported an error: unknown error (http status: 413)
INFO 2024-05-13 18:03:52.785082 +02:00 Skipping update nagger update check`
Here is our Sentry configuration
dexguardEnabled.set(false) includeSourceContext.set(false) autoInstallation { enabled.set(true) sentryVersion.set("7.9.0") }
Expected Result
We should be able to successfully upload the proguard file.
Actual Result
Error 413 file too large when executing gradle task uploadSentryProguardMappings
The text was updated successfully, but these errors were encountered: