Repository navigation
Tools updater throws 402 rate limit exceeded error #48119
Copy link
Copy link
Closed
Labels
toolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.
Description
Activity
I think its because the rate limit for unauthenticated github api calls is very low
- addedtoolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.
on May 25, 2023 I think its because the rate limit for unauthenticated github api calls is very low
Exactly, the rate limit is 60 calls per hour for unauthenticated requests
$ curl -i https://github.com/proxy/api.github.com/nodejs/node HTTP/2 404 server: GitHub.com date: Sat, 27 May 2023 07:54:56 GMT content-type: application/json; charset=utf-8 x-github-media-type: github.v3; format=json x-github-api-version-selected: 2022-11-28 access-control-expose-headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, X-GitHub-SSO, X-GitHub-Request-Id, Deprecation, Sunset access-control-allow-origin: * strict-transport-security: max-age=31536000; includeSubdomains; preload x-frame-options: deny x-content-type-options: nosniff x-xss-protection: 0 referrer-policy: origin-when-cross-origin, strict-origin-when-cross-origin content-security-policy: default-src 'none' vary: Accept-Encoding, Accept, X-Requested-With x-ratelimit-limit: 60 x-ratelimit-remaining: 51 x-ratelimit-reset: 1685176534 x-ratelimit-resource: core x-ratelimit-used: 9 content-length: 84 x-github-request-id: 3CAE:898A:13DC9C53:140DBB7B:6471B74FThe Job failed with the following error. To solve that problem we can authenticate the request to increase the rate limit to 1000 calls per hour, or read the
resetvalue from the response header to schedule a new job'x-ratelimit-limit' => { name: 'X-RateLimit-Limit', value: '60' }, 'x-ratelimit-remaining' => { name: 'X-RateLimit-Remaining', value: '0' }, 'x-ratelimit-reset' => { name: 'X-RateLimit-Reset', value: '1684786333' }, 'x-ratelimit-resource' => { name: 'X-RateLimit-Resource', value: 'core' }, 'x-ratelimit-used' => { name: 'X-RateLimit-Used', value: '60' }, 'content-length' => { name: 'Content-Length', value: '279' },I guess we can authenticate the request
- added a commit that references this issue
on May 29, 2023 - added a commit that references this issue
on May 30, 2023 - added 2 commits that reference this issue
on Aug 14, 2023
Metadata
Metadata
Assignees
Labels
toolsIssues and PRs related to the tools directory.Issues and PRs related to the tools directory.
Referencing: https://github.com/nodejs/node/actions/runs/5049673263/jobs/9059426826