Closed shivam-kapila closed 3 years ago
Is there a way to retrieve the original response body in case of 400 errors. e.g. The error message in case of error #503 is
{ "error": "invalid_grant", "error_description": "Refresh token revoked" }
But spotipy only shows 400 Bad Request and not the original message Refresh token revoked. A way to access the original JSON would help better debug issues in client apps.
Refresh token revoked.
I just made a pull request that fixed your issue.
@Peter-Schorn thanks for the action :)
Released in 2.18.0
Is there a way to retrieve the original response body in case of 400 errors. e.g. The error message in case of error #503 is
But spotipy only shows 400 Bad Request and not the original message
Refresh token revoked.
A way to access the original JSON would help better debug issues in client apps.