Upload Debug Symbols to Sentry failed with API request failed 403.
OS:
- [ ] Windows
- [x] MacOS
- [ ] Linux
Platform:
- [x] iOS
- [ ] Android
Output of node -v && npm -v && npm ls --prod --depth=0
v8.9.0
5.6.0
[email protected] /Users/tuanmai/code/eh-mobile-pro
├── @remobile/[email protected]
├── @sentry/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── UNMET PEER DEPENDENCY [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] invalid
├── [email protected] invalid
├── [email protected]
├── [email protected] invalid
├── [email protected] invalid
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
Config:
Sentry.config('https://...).install();
I had successfully build ios with sentry. But recently (about 2 weeks ago), I started encounter issue with sentry when build ios both on local machine and on circleCI. I already run react-native link again to update sentry.properties config but still encounter this error.
On local machine:
[11:09:46]: ▸ > Analyzing 2 sources
[11:09:46]: ▸ > Rewriting sources
[11:09:46]: ▸ > Adding source map references
[11:09:46]: ▸ error: API request failed
[11:09:46]: ▸ caused by: sentry reported an error: You do not have permission to perform this action. (http status: 403)
[11:09:46]:
Steps to reproduce:
fastlane ios devor build by xcode.
Actual result:
- Build failed with Request 403 error.
Expected result:
- Build success on both local machine and circle CI
Updates: When I set SENTRY_AUTH_TOKEN in my .zshrc I can successfully create new release on sentry by run ./node_modules/@sentry/cli/bin/sentry-cli --log-level DEBUG releases new v1.0.0.
But when build the project by fastlane, I got this issue:
OK 6a3a4043-524a-3062-9466-e1934dee5039 (Protobuf; armv7)
[14:39:40]: ▸ error: API request failed
[14:39:40]: ▸ caused by: sentry reported an error: request failure (http status: 500)
[14:39:40]: ▸ Object({"detail": String("Internal Error"), "errorId": String("9bc7846ed6e84b15b7d908acf835bee2")})
@tuanmai This is a bug on our site, your release name is too long, please shorten it as a workaround.
Max length is 32 yours is 38.
@HazAT What do you mean with "release name"? bundle-identifier?
i have the same error build success in local, but with fail in fastlane give the same error:
error: API request failed
caused by: sentry reported an error: request failure (http status: 500)
Object({"detail": String("Internal Error"), "errorId": String("21cdb0e2bf7e4ceca785c69a4e370d35")})
** ARCHIVE FAILED **
@tuanmai can you help me what did you do with this problem?
any help please? @HazAT @alex-hofsteede
For those getting a 403, your auth.token setting in sentry.properties is probably outdated. Try running node node_modules/@sentry/wizard/dist/bin.js -i reactNative -p ios android (the postinstall hook) to get an updated token.
I think what happened to me is that I removed someone from my sentry team so the auth token was disabled? If someone from Sentry can confirm...
the above script didn't work for me but the error seems to be an invalid sentry.properties auth token
In my case SENTRY_AUTH_TOKEN env variable was missing in the setup.
You can create token in Sentry Settings: https://[your org slug].sentry.io/settings/auth-tokens/