Closed hmhealey closed 2 years ago
I had the same error. Fixed it by upgrading to react-native-sentry@0.43.2
i has same issue upgrading to react-native-sentry@0.43.2 not help me
```
info start
info finish
info Writing unbundle output to:, /Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle
info Writing sourcemap output to:, /Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle.map
info Done writing unbundle output
info Done writing sourcemap output
info Copying 193 asset files
info Done copying assets
+ [[ false != true ]]
+ [[ ! -f /Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle ]]
Processing react-native sourcemaps for Sentry upload.
INFO 2019-08-30 17:30:09.552792 +00:00 bundle path: /Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle
INFO 2019-08-30 17:30:09.552833 +00:00 sourcemap path: /Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle.map
> Analyzing 2 sources
> Rewriting sources
DEBUG 2019-08-30 17:30:09.596903 +00:00 Parsing RAM bundle (/Users/vagrant/Library/Developer/Xcode/DerivedData/app/Build/Intermediates.noindex/ArchiveIntermediates/Coinbank/BuildProductsPath/Release-iphoneos/app/main.jsbundle)...
DEBUG 2019-08-30 17:30:09.596944 +00:00 Trying to guess the sourcemap reference
DEBUG 2019-08-30 17:30:09.598120 +00:00 Sourcemap reference for ~/main.jsbundle found: ~/main.jsbundle.map
DEBUG 2019-08-30 17:30:10.542092 +00:00 Inserting source for 18.js
DEBUG 2019-08-30 17:30:10.548798 +00:00 Inserting sourcemap for 18.js
DEBUG 2019-08-30 17:30:10.549841 +00:00 Inserting source for 57.js
...
DEBUG 2019-08-30 17:30:11.046536 +00:00 Inserting source for 1159.js
DEBUG 2019-08-30 17:30:11.473996 +00:00 Inserting source for 1687.js
DEBUG 2019-08-30 17:30:11.476779 +00:00 Inserting source for 1688.js
DEBUG 2019-08-30 17:30:11.478083 +00:00 Inserting sourcemap for 1688.js
> Adding source map references
DEBUG 2019-08-30 17:30:12.281608 +00:00 request POST https://sentry.io/api/0/projects/**/**/releases/
DEBUG 2019-08-30 17:30:12.282238 +00:00 using token authentication
DEBUG 2019-08-30 17:30:12.282271 +00:00 json body: {"version":"*******t-2.8.5","projects":["*******"]}
DEBUG 2019-08-30 17:30:12.282319 +00:00 retry number 0, max retries: 0
DEBUG 2019-08-30 17:30:12.435175 +00:00 > POST /api/0/projects/**/**/releases/ HTTP/1.1
DEBUG 2019-08-30 17:30:12.435228 +00:00 > Host: sentry.io
DEBUG 2019-08-30 17:30:12.435244 +00:00 > Accept: */*
DEBUG 2019-08-30 17:30:12.435257 +00:00 > Connection: TE
DEBUG 2019-08-30 17:30:12.435269 +00:00 > TE: gzip
DEBUG 2019-08-30 17:30:12.435282 +00:00 > User-Agent: sentry-cli/1.43.0
DEBUG 2019-08-30 17:30:12.437383 +00:00 > Authorization: Bearer aba048e8***
DEBUG 2019-08-30 17:30:12.437417 +00:00 > Content-Type: application/json
DEBUG 2019-08-30 17:30:12.437432 +00:00 > Content-Length: 71
DEBUG 2019-08-30 17:30:12.571940 +00:00 < HTTP/1.1 208 ALREADY REPORTED
DEBUG 2019-08-30 17:30:12.572024 +00:00 < Server: nginx
DEBUG 2019-08-30 17:30:12.572080 +00:00 < Date: Fri, 30 Aug 2019 17:30:12 GMT
DEBUG 2019-08-30 17:30:12.572977 +00:00 < Content-Type: application/json
DEBUG 2019-08-30 17:30:12.573825 +00:00 < Content-Length: 394
DEBUG 2019-08-30 17:30:12.574672 +00:00 < Connection: keep-alive
DEBUG 2019-08-30 17:30:12.574840 +00:00 < X-XSS-Protection: 1; mode=block
DEBUG 2019-08-30 17:30:12.575768 +00:00 < Content-Language: en
DEBUG 2019-08-30 17:30:12.576455 +00:00 < X-Content-Type-Options: nosniff
DEBUG 2019-08-30 17:30:12.576647 +00:00 < Vary: Accept-Language, Cookie
DEBUG 2019-08-30 17:30:12.577788 +00:00 < Allow: GET, POST, HEAD, OPTIONS
DEBUG 2019-08-30 17:30:12.577831 +00:00 < X-Frame-Options: deny
DEBUG 2019-08-30 17:30:12.579063 +00:00 < X-Served-By: web-c9683d4c
DEBUG 2019-08-30 17:30:12.579097 +00:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
DEBUG 2019-08-30 17:30:12.579827 +00:00 response status: 208
DEBUG 2019-08-30 17:30:12.580548 +00:00 body: {"dateReleased":null,"commitCount":0,"url":null,"data":{},"lastDeploy":null,"deployCount":0,"dateCreated":"2019-08-27T12:00:01.958Z","lastEvent":null,"version":"*******t-2.8.5","firstEvent":null,"lastCommit":null,"shortVersion":"2.8.5","authors":[],"owner":null,"newGroups":0,"ref":null,"projects":[{"slug":"*******","name":"BitCoin"},{"slug":"*******","name":"Coinbank"}]}
DEBUG 2019-08-30 17:30:12.581771 +00:00 request GET https://sentry.io/api/0/projects/**/**/releases/*******t-2.8.5/files/?cursor=
DEBUG 2019-08-30 17:30:12.581806 +00:00 using token authentication
DEBUG 2019-08-30 17:30:12.581822 +00:00 retry number 0, max retries: 0
DEBUG 2019-08-30 17:30:12.583374 +00:00 > GET /api/0/projects/**/**/releases/*******t-2.8.5/files/?cursor= HTTP/1.1
DEBUG 2019-08-30 17:30:12.583402 +00:00 > Host: sentry.io
DEBUG 2019-08-30 17:30:12.583417 +00:00 > Accept: */*
DEBUG 2019-08-30 17:30:12.583458 +00:00 > Connection: TE
DEBUG 2019-08-30 17:30:12.584702 +00:00 > TE: gzip
DEBUG 2019-08-30 17:30:12.585507 +00:00 > User-Agent: sentry-cli/1.43.0
DEBUG 2019-08-30 17:30:12.586333 +00:00 > Authorization: Bearer aba048e8***
DEBUG 2019-08-30 17:30:12.715718 +00:00 < HTTP/1.1 200 OK
DEBUG 2019-08-30 17:30:12.715765 +00:00 < Server: nginx
DEBUG 2019-08-30 17:30:12.715794 +00:00 < Date: Fri, 30 Aug 2019 17:30:12 GMT
DEBUG 2019-08-30 17:30:12.715814 +00:00 < Content-Type: application/json
DEBUG 2019-08-30 17:30:12.715830 +00:00 < Content-Length: 22489
DEBUG 2019-08-30 17:30:12.715846 +00:00 < Connection: keep-alive
DEBUG 2019-08-30 17:30:12.715861 +00:00 < Vary: Accept-Encoding
DEBUG 2019-08-30 17:30:12.715876 +00:00 < X-XSS-Protection: 1; mode=block
DEBUG 2019-08-30 17:30:12.715891 +00:00 < X-Content-Type-Options: nosniff
DEBUG 2019-08-30 17:30:12.715906 +00:00 < Content-Language: en
DEBUG 2019-08-30 17:30:12.715921 +00:00 < Vary: Accept-Language, Cookie
DEBUG 2019-08-30 17:30:12.715937 +00:00 < Link:
it look like reached sentry api limit
100*200 = 20 000
You can also try to upgrade CocoaPods and your pods.
yes, my pods.lock
- SentryReactNative (0.43.2):
- React
- Sentry (~> 4.1.3)
i investigate issue and found some detail
add_sourcemap_references
tries download previous artifacts but if you have more > 20 000
artifacts you got a error Pagination offset too large
because sentry api have MAX_RELEASE_FILES_OFFSET = 20000
Is this still happening?
Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!
OS:
Platform:
Output of
node -v && npm -v && npm ls --prod --depth=0
Config:
We've been unable to upload source maps for our mobile apps lately due to some API error. On Android, the failure looks like this:
I don't have the logs available for iOS currently, but it was also failing with a similar "Pagination offset too large" error in response to a request to
https://sentry.io/api/0/projects/mattermost-mr/mattermost-mobile-ios/releases/com.mattermost.rn-1.21.0/files/?cursor=100:200:0
.I also get the same error if I try to curl that address or also run
sentry-cli releases -o mattermost-mr files com.mattermost.rn-1.21.0 list
.I tried changing the
cursor
parameter of the URL, and I found that the 199th page (?cursor=100:199:0
) works, but the 200th page (?cursor=100:200:0
) returns that error. Similarly, if I reduce the page size to 10, I can get the 1999th page (?cursor=10:1999:0
), but not the 2000th page (?cursor=10:2000:0
).Is there some sort of hard cap on the number of files that can be uploaded for a given release? I know we have some code splitting in our app, so perhaps it's splitting it up so much that we're hitting some limit here?