Unable to install bugsnag-cli in post-publish script #2023
-
If you are looking for help, please confirm the following...
Which mobile framework are you using?Flutter (Dart) Steps to reproduce
Expected resultsA successful install, which happens sometimes:
Actual resultsMore often than not, the curl fails:
If you inspect the script, it will try to find the Build id (optional)64f884abcbc8012dc5a6a4c3 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @jeroenbell, We have been able to reproduce the same on our end. We are investigating this issue. |
Beta Was this translation helpful? Give feedback.
-
Update We've further investigated the issue and we've found that it fails when the rate limit is reached. For unauthenticated users it's 60 request per hour (source). On a local machine it's not that easy to reach, but on CI platforms like codemagic it is since the limit is per IP. With some more verbose logging: > GET /repos/bugsnag/bugsnag-cli/releases/latest HTTP/2
> Host: api.github.com
> User-Agent: curl/8.1.2
> Accept: */*
>
< HTTP/2 403
< date: Fri, 22 Sep 2023 06:51:48 GMT
< server: Varnish
< strict-transport-security: max-age=31536000; includeSubdomains; preload
< x-content-type-options: nosniff
< x-frame-options: deny
< x-xss-protection: 1; mode=block
< content-security-policy: default-src 'none'; style-src 'unsafe-inline'
< access-control-allow-origin: *
< access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-RateLimit-Used, X-RateLimit-Resource, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
< content-type: application/json; charset=utf-8
< referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin
< x-github-media-type: github.v3; format=json
< x-ratelimit-limit: 60
< x-ratelimit-remaining: 0
< x-ratelimit-reset: **********
< x-ratelimit-resource: core
< x-ratelimit-used: 60
< content-length: 281
< x-github-request-id: ****:*****:********:*******:*********
<
{"message":"API rate limit exceeded for ***.***.***.***. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)","documentation_url":"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"}
* Connection #0 to host api.github.com left intact
Failed to get download URL from https://api.github.com/repos/bugsnag/bugsnag-cli/releases/latest So definetely not a codemagic issue, but something bugsnag can fix. |
Beta Was this translation helpful? Give feedback.
-
Update The bugsnag team has a released a fix for this issue: bugsnag/bugsnag-cli#57 (comment). |
Beta Was this translation helpful? Give feedback.
Update
The bugsnag team has a released a fix for this issue: bugsnag/bugsnag-cli#57 (comment).