Skip to content
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

What about throttling ? #49

Open
ahmeetarif opened this issue Apr 12, 2021 · 1 comment
Open

What about throttling ? #49

ahmeetarif opened this issue Apr 12, 2021 · 1 comment

Comments

@ahmeetarif
Copy link

Hello, How can I handle throttling ?

@DanielLarsenNZ
Copy link
Member

Hi @ahmeetarif, we don't have great support for throttling right now. You could wrap calls using a library like Polly however SpotifyApi.NetCore does not do a great job of passing back retry information to callers in the current version. You would need to check the Error.Message property in the error message to see if it was a throttling error, and if so, back off an retry using Polly.

Can you send me a log message / error message from a throttling error please? And if you can see them, any retry-after headers. I will see if I can incorporate them in the response.

In vNext I will add built-in retry support for throttling.

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

2 participants