-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ConnectionError: ERR#0015: error 429, try again later #467
Comments
Hi @Ashabat1, could you please provide me with more information about it? Like the |
Thank you for the quick response. What are exactly the limitations? Is it the number of requests? |
Thanks for your response, I'm not getting that error, anyway, I'll try to run some stress tests in order to estimate a little bit better which are the limitations of Investing.com, so that I can give you at least a number of supported requests per hour or something similar! In the meantime, you could try using a different IP to see whether that works or not, so as to clearly spot that the issue with Investing.com is the rate limitation. |
I have done some tests. I fix it by setting up the time.sleep(10) between the calls. Thank you @alvarobartt |
Could you please tell us how much time you have to wait until get again the response from the api |
I had the same issue. Using a VPN to change my IP address helps to "start clean" again. In my case, waiting 2'' after each request prevents running in to the issue. See this also: #149 |
I am getting the same error
|
After 2 days It start working again, so I sugest to run que api with time.sleep to avoid get your ip banned, I dont have enought information to say how often you can run it |
Can you please put a minimum working example so others can see how you used the |
@msh855 Should look something similar to: import investpy
from time import sleep
for _ in range(10):
_ = investpy.get_stock_historical_data(stock="AAPL", country="United States", from_date="01/01/2010", to_date="01/01/2021")
sleep(5) |
I keep getting the following message:
ConnectionError: ERR#0015: error 429, try again later.
The text was updated successfully, but these errors were encountered: