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

Getting rate limited when a large number of tracks is present #15

Closed
niksudan opened this issue Sep 14, 2020 · 1 comment
Closed

Getting rate limited when a large number of tracks is present #15

niksudan opened this issue Sep 14, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@niksudan
Copy link
Owner

Getting rate limited a lot when fetching Spotify track data.

Two solutions here:

1 - Make use of the getSeveralTracks endpoint to minimize errors
https://developer.spotify.com/documentation/web-api/reference/tracks/get-several-tracks/

2 - Implement retries (switch to RxJS?)

Note: If Web API returns status code 429, it means that you have sent too many requests. When this happens, check the Retry-After header, where you will see a number displayed. This is the number of seconds that you need to wait, before you try your request again.

https://developer.spotify.com/documentation/web-api/

@niksudan niksudan added the bug Something isn't working label Sep 14, 2020
@niksudan
Copy link
Owner Author

Fixed in v0.4.2

@niksudan niksudan self-assigned this Sep 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant