mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 00:25:54 +03:00
[GH-ISSUE #645] How to retrieve original response body in case of 400 errors. #387
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#387
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @shivam-kapila on GitHub (Feb 25, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/645
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.@Peter-Schorn commented on GitHub (Mar 12, 2021):
I just made a pull request that fixed your issue.
@shivam-kapila commented on GitHub (Mar 12, 2021):
@Peter-Schorn thanks for the action :)
@stephanebruckert commented on GitHub (Jun 26, 2021):
Released in 2.18.0