Skip to content

Hang for several minutes when daily limit reached on 429 error #3949

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

Closed
pniaps opened this issue Nov 11, 2022 · 3 comments
Closed

Hang for several minutes when daily limit reached on 429 error #3949

pniaps opened this issue Nov 11, 2022 · 3 comments

Comments

@pniaps
Copy link

pniaps commented Nov 11, 2022

Hi.
My code is hanging for 3-10 minutos because of the next error.
The problem is because we have reached the daily limit, but in my opinion this error should not retry the request. It's my job to handle it.

chart_studio.exceptions.PlotlyRequestError: Hi there, you've reached the threshold of 100 combined image exports and chart saves per 24h period. If you need to raise your daily limit, please consider upgrading to a paid plan

This error was introduced on #1307

At the moment I can't get a paid plan until the boss decide it, so i've to live with that.

Maybe this should be configurable.

Many thanks.

@AaronStiff
Copy link
Contributor

Perhaps a potential workaround for now would be to include a try-except block that catches that particular error and stops the program?

@pniaps
Copy link
Author

pniaps commented Feb 24, 2023

The problem is that no retry should be done on first 429 error, because if i've reached the daily limit will fail again.

Perhaps should be better to allow disabling retrying on 429 code with a variable or something like this

chart_studio.tools.disableRetryWhenThrottled()

@gvwilson
Copy link
Contributor

gvwilson commented Jul 5, 2024

Hi - we are trying to tidy up the stale issues and PRs in Plotly's public repositories so that we can focus on things that are still important to our community. Since this one has been sitting for a while, I'm going to close it; if it is still a concern, please add a comment letting us know what recent version of our software you've checked it with so that I can reopen it and add it to our backlog. Alternatively, if it's a request for tech support, please post in our community forum. Thank you - @gvwilson

@gvwilson gvwilson closed this as completed Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants