sentry-cli: Failing with 429 errors

Environment

2.11.0

Steps to Reproduce

Our nightly dev builds running on our CI service (Circle CI) have started routinely failing over the last week at the end of our workflow when we create the release in Sentry, normally on the upload dSYM step.

After uploading a build to TestFlight our workflow uses sentry CLI to:

  • Create a release and deploy in sentry.
  • Set the commits for that release.
  • Upload the dSYM.

This workflow has worked reliably for months but now it regularly fails due to an HTTP 429 error.

Expected Result

Our workflow completes successfully.

Actual Result

..
[00:16:43]: > Found 1 debug information file
[00:16:43]: > Prepared debug information file for upload
[00:16:43]: error: API request failed
[00:16:43]: caused by: sentry reported an error: unknown error (http status: 429)p
[00:16:43]: ------------------------

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 5
  • Comments: 25 (10 by maintainers)

Most upvoted comments

We should reopen this issue. We are still suffering from 429 errors.

@trevorr Hi, I’ll reopen this issue and post any updates here as they come

@kamilogorek Is this issue being reopened, or is there another one we should track?

Is there any update on this issue? I was told by support that this was a bug with rate limiting and that a public issue would be opened to track the problem. This is the verbose log output:

INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913447 +00:00 retry number 0, max retries: 5
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913596 +00:00 > POST /api/0/projects/****************/community-ios/files/difs/assemble/ HTTP/1.1
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913599 +00:00 > Host: sentry.io
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913600 +00:00 > Accept: */*
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913602 +00:00 > Connection: TE
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913604 +00:00 > TE: gzip
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913605 +00:00 > User-Agent: sentry-cli/2.10.0
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913621 +00:00 > Authorization: Bearer beedafdf***
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913623 +00:00 > Content-Type: application/json
INFO [2023-07-13 16:30:50.91]: DEBUG   2023-07-13 16:30:50.913624 +00:00 > Content-Length: 1115
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977103 +00:00 < HTTP/1.1 429 Too Many Requests
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977114 +00:00 < Server: nginx
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977117 +00:00 < Date: Thu, 13 Jul 2023 16:30:50 GMT
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977120 +00:00 < Content-Type: text/html; charset=utf-8
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977124 +00:00 < Content-Length: 91
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977128 +00:00 < Connection: keep-alive
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977131 +00:00 < x-sentry-rate-limit-remaining: 0
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977133 +00:00 < x-sentry-rate-limit-limit: 40
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977135 +00:00 < x-sentry-rate-limit-reset: 1689265851
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977138 +00:00 < x-sentry-rate-limit-concurrentremaining: None
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977145 +00:00 < x-sentry-rate-limit-concurrentlimit: 25
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977147 +00:00 < vary: Accept-Language, Cookie
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977150 +00:00 < content-language: en
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977152 +00:00 < x-frame-options: deny
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977154 +00:00 < x-content-type-options: nosniff
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977157 +00:00 < x-xss-protection: 1; mode=block
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977161 +00:00 < content-security-policy: style-src * 'unsafe-inline'; img-src * blob: data:; script-src 'self' 'unsafe-inline' 'report-sample' 'unsafe-eval' s1.sentry-cdn.com js.sentry-cdn.com browser.sentry-cdn.com statuspage-production.s3.amazonaws.com static.zdassets.com aui-cdn.atlassian.com connect-cdn.atl-paas.net js.stripe.com ssl.google-analytics.com 'strict-dynamic' cdn.pendo.io data.pendo.io pendo-io-static.storage.googleapis.com pendo-static-5634074999128064.storage.googleapis.com; frame-ancestors 'self'; font-src * data:; default-src *; connect-src *; base-uri 'none'; object-src 'self'; report-uri https://o1.ingest.sentry.io/api/54785/security/?sentry_key=f724a8a027db45f5b21507e7142ff78e&sentry_release=c6564a0e54ebb374b39f4c948528d8a47df92b14
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977165 +00:00 < x-envoy-attempt-count: 1
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977168 +00:00 < x-envoy-upstream-service-time: 22
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977170 +00:00 < x-served-by: getsentry-web-default-common-production-6cf86dbb79-wrbb9
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977173 +00:00 < x-served-by: frontend-default-5c9b796d4-95mnl
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977175 +00:00 < strict-transport-security: max-age=31536000; includeSubDomains; preload
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977178 +00:00 < Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977187 +00:00 response status: 429
INFO [2023-07-13 16:30:50.97]: DEBUG   2023-07-13 16:30:50.977190 +00:00 body: "You are attempting to use this endpoint too frequently. Limit is 40 requests in 1 seconds"
INFO [2023-07-13 16:30:50.98]: error: API request failed
INFO [2023-07-13 16:30:50.98]: caused by: sentry reported an error: unknown error (http status: 429)