JohnnyCrazy / SpotifyAPI-NET

:sound: A Client for the Spotify Web API, written in C#/.NET
http://johnnycrazy.github.io/SpotifyAPI-NET/
MIT License
1.51k stars 310 forks source link

"Retry-After" header not present in response with error code 429. #124

Closed svenrog closed 7 years ago

svenrog commented 7 years ago

When the API becomes rate limited, spotify returns a header with the wait time as described here.

https://developer.spotify.com/web-api/user-guide/#rate-limiting

This value is not present in the response returned when querying.

ATypescriptEnjoyer commented 7 years ago

This has already been raised, see here: https://github.com/JohnnyCrazy/SpotifyAPI-NET/issues/113

svenrog commented 7 years ago

Thanks for the info, but afaik you can retrieve a response from the WebException, since it contains a response. https://msdn.microsoft.com/en-us/library/b2zywh13(v=vs.110).aspx

I'll look into this for you.

JohnnyCrazy commented 7 years ago

Closing as duplicate of #113 , PRs are welcome 👍