-
Notifications
You must be signed in to change notification settings - Fork 6
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
Error in loop #2
Comments
Here is a piece of code for getting GDPC1. I am trying to create a table that matches up the exciting data format.
|
I don't really understand the error but I believe you are correct when you say "Is it because of I am extracting data from the server too fast?" In my experience this error occurs when you request lots of series in a loop. I do not understand the cause but believe it is something at the 'FRED end'. Typically if you just wait a half a minute and then run the command again it will then work. I sometimes do this manually by just having the loop print the counter (i in your example) and then rerun from there until the end. The other alternative that might work would be to put a pause() inside the loop. Obviously this would make the code slower, but getting data is probably not something you are having to run too often so you could do that and then just save the downloaded data to a mat-file for future use. Sorry I can't be of more help but as I said, I don't really understand the cause of the error so all I have a workarounds. If anyone reading this understands the actual cause please let me know. |
Thank you very much for your reply. I guess like you said it is because of "too many requests" 429 error. Thanks for suggestion for |
Hi,
Thank you very much for sharing this nice code. I am trying to use loop to get ALFRED data using your function. At some point in the loop, I get error message like below. When I manually execute the command at that point, it does work. Can I ask why this happens? Is it because of I am extracting data from the server too fast?
The text was updated successfully, but these errors were encountered: