Getting Error 429 Too many requests when using Linode. Anyway around it?
I just started using Linode and I am trying to run a Python script that pulls information from an API. The script works perfectly from my laptop. However, when using the exact same script from Linode, I constantly get a 429 Error "Too many requests", even after a single initial request.
Looking at other questions in the forum, it seems this may be related to Linode's IP addresses somehow being blocked/preemptively rate limited by the service.
Is there anyway around this or does this mean that I should forget about trying to use Linode to run my script?
5 Replies
✓ Best Answer
Looking at other questions in the forum, it seems this may be related to Linode's IP addresses somehow being blocked/preemptively rate limited by the service.
That's probably the case… What's the service? Does it have free and pay-for tiers?
If so, the service has probably identified the IP address of your PC as dynamically-allocated from a pool…and allows that address to use the free tier. The IP address of your Linode is not one of these so your request gets shuffled off to the pay-for tier (which rejects the request because you haven't paid). That's how the service is able to treat your home/Linode IP addresses differently.
Is there anyway around this or does this mean that I should forget about trying to use Linode to run my script?
You could pay whatever the subscription price is. That should fix it for sure… ;-)
-- sw
Thanks for the reply. They have free and paying tiers indeed. Unfortunately, they are a little too expensive to justify subscribing to a paying tier for my use case.
Guess will have to continue with my laptop on 24/7…:)
I don't think a VPN would help…
What I've done in cases like this is have my local computer (the one with the dynamic IP address) collect the data I need only and then ship it off to Linode for processing, storage and query.
The other solution would be to find a similar service that only has free access and collect what I can and find another service that has the rest and then collate & synthesize.
I used to do this a lot with data like you can find at ipinfo.io. IP location data is (mostly) public and there are lots of sources for bits/pieces of it…all free. The downside is that it took lots of cycles and time to do all this. The upside is that it didn't change very much so I didn't have to do it very often.
@mattsb3…what's the service? Maybe the group has some ideas about where you can get the info you need without using a pay-for service…
-- sw
Unfortunately, I need somewhat recurrent updates so I don´t think it makes sense to upload the updates from my local computer as that would pretty much require to have it on 24/7.
I am experimenting trying to get similar info from other services. Not ideal, and it is taking me some time to get everything working again, but I may be able to pull it off :).
Thanks a ton for the help.