-
-
Notifications
You must be signed in to change notification settings - Fork 227
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
Sentry reported an error: '' does not match '^[^/]+$' (http status: 400) #2385
Comments
Hi @developers-bysolutions – seems like this is a bug in Sentry CLI. The server is returning a 400 error because the sourcemaps are being uploaded with an empty version string, as you can see in this portion of the logs you provided (scroll to the end of the last line):
The version is optional in this request, and by default, the Sentry CLI would not send it. When it is sent, however, the server validates that it matches the regex To help prevent this error from our side, we will do the following:
In the meantime, please workaround this bug by unsetting the |
Reopening, as #2394 addresses only one of the action items (treating an empty version as if no version was provided) |
CLI Version
2.41.1
Operating System and Architecture
Operating System Version
Ubuntu 24.04.1 LTS
Link to reproduction repository
No response
CLI Command
sentry-cli sourcemaps upload --org bysolutions --project pi ../public/build
Exact Reproduction Steps
Expected Results
I expect process work with success message
Actual Results
Source Map Debug ID Injection Report
Ignored: The following source files already have debug ids
af8b11b1-adea-5eb3-8279-05721104444b - ../public/build/js/test-7e83d29765.js
f4e4ad41-3e79-5e6d-848a-159a46b66a90 - ../public/build/js/test.js
.....
Caused by:
sentry reported an error: '' does not match '^[^/]+$' (http status: 400)
Logs
The text was updated successfully, but these errors were encountered: