core(www): unpkg responds with "Response code 429 (Too Many Requests)"
See original GitHub issueDescription
requesting README from https://unpkg.com/
results in “Response code 429 (Too Many Requests)”
Steps to reproduce
- checkout gatsby
- open https://github.com/gatsbyjs/gatsby/blob/f95cd06bb8454ae3a9dd746f6e4fa3f12bdc3717/packages/gatsby-source-npm-package-search/src/gatsby-node.js#L38-L46
- add line into the catch blog:
console.log(`"${hit.objectID}" - error "${err.message}" `);
- run
gatsby develop
Expected result
- it should only print 404 error messages resulting from missing README
Actual result
many times i see the error:
- “Response code 429 (Too Many Requests)”
Issue Analytics
- State:
- Created 3 years ago
- Comments:14 (3 by maintainers)
Top Results From Across the Web
How to Fix 429 Too Many Requests Error - Kinsta
The HTTP 429 error is returned when too many requests are made to a page within a short period of time. Find out...
Read more >429 Too Many Requests - HTTP - MDN Web Docs
The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time...
Read more >429 Error – Too Many Requests HTTP Code Explained
The 429 error is an HTTP status code. It tells you when the use of an internet resource has surpassed the number of...
Read more >http error 429 too many requests google search - You.com
The HTTP 429 Too Many Requests response status code indicates the user has sent too many requests in a given amount of time...
Read more >How to Fix 429 Too Many Requests Error Code - Hostinger
One of these HTTP codes is 429 Too Many Requests. As the name suggests, this code appears whenever someone repeatedly accesses a website...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve looked on Google for a possible answer and I found that the response on UNPKG:
Response code 429 (Too Many Requests)
was due to a bug/config problem on CloudFlare which causes the traffic to be redirected to Google Cloud in some situations: https://github.com/mjackson/unpkg/issues/237#issuecomment-568770980I’m not sure if the issue comes from Cloudflare or UNPKG (honestly I believe this is a problem with UNPKG, but the developer hasn’t spoken on this yet…).
The obvious solution for Gatsby is to use jsDelivr (as I said before). The PR would be super easy to do and it will fix this issue.
Hey again!
It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m
HUMAN_EMOTION_SORRY
. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!Thanks again for being part of the Gatsby community! 💪💜