question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raise Error if response is 429

See original GitHub issue

When access rate is too frequent, Wayback Machine returns 429 as HTTP status code.

And returned HTML Body is:

https://gist.github.com/eggplants/414bab0230f14358642faf364bc1f7ec

<h1>Too Many Requests</h1>

We are limiting the number of URLs you can submit to be Archived to the Wayback Machine, 
using the Save Page Now features, to no more than 15 per minute.
<p>
  If you submit more than that we will block Save Page Now requests from your IP number for 5 minutes.
</p>
<p>
  Please feel free to write to us at info@archive.org if you have questions about this.  
  Please include your IP address and any URLs in the email so we can provide you with better service.
</p>

So I suggest raising TooManyRequestsError when returned status code is 429.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
akamhycommented, Feb 4, 2022

I’ll do it myself if you’d like.

Go ahead.

1reaction
akamhycommented, Feb 4, 2022

@eggplants will you be working on this issue? Just asking so that we both don’t end up creating two PRs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What an HTTP Error 429 Means & How to Fix It - HubSpot Blog
HTTP Error 429 is an HTTP response status code that indicates the client application has surpassed its rate limit, or number of requests...
Read more >
What error should I raise if response.status code is 429?
I want to raise an error in my code if the status code of a request response is 429, which error should I...
Read more >
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 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 >
Handling the “HTTP 429 – Too Many Requests” error when ...
The HTTP 429 - Too Many Requests response status code indicates the user has sent too many requests in a given amount of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found