-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Pagination offset too large (http status: 400)
#1306
Comments
Found an issue from 2019 that was closed, not much insight into possible next steps to debug. |
At this point, here's what we've tried:
|
|
That worked beautifully. Sourcemaps are now uploaded as expected @kamilogorek |
@kamilogorek specifying the version back a few patches is a good temporary solution, do you have any advice on a solution that will let us keep up with new releases? |
I'm also seeing a similar issue on cli tool version
Is there any additional information or is our only choice to downgrade our |
|
The problem here is that we have some limits on how many files we can query for. This is happening only if the number of release files is over 20k right now - https://github.com/getsentry/sentry/blob/fcc197755625c4a6223d243df1e8811252225593/src/sentry/constants.py#L298-L303 |
Normally 20k in 1 release would be weird but in our case our UI releases aren't just 1 package, but are divided into microservices that can be updated independently of each other (we don't have a release 1 and release 2, but component 1 release 1, component 2 release 1, etc). This works for us because we can only update what's needed while letting the stuff that doesn't stay cached on the client, but doesn't exactly play nice with Sentry's release system since it expects 1 name for a release. As a result because you HAVE to have a release for uploading a source map, we just upload all updates under the same release but just update what URL the map corresponds to since we have a unique URL per update. |
Got it, makes sense. I'll try to come up with alternative idea for deduping functionality soon. |
Environment
Github action
platform: linux, architecture: x86_64
node v16.16.0
sentry-cli 2.5.0 (
curl -sL https://sentry.io/get-cli/ | bash
)How do you use Sentry?
Sentry SaaS (sentry.io)
Steps to Reproduce
Expected Result
Successfully upload sourcemaps, so we can deploy to development/production.
Actual Result
Full logs
I think the critical line is that the upload fails at
cursor=100:200:0
. We've tried applying flags for--ignore .spec.js --ignore .spec.js.map
, then--ignore-file .sentryignore
, to shrink the number of files that are bundled for upload (successfully dropped the file count from 402 to 374), but always fail withPagination offset too large (http status: 400)
.The text was updated successfully, but these errors were encountered: