mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #689] [MERGED] Fallback on decoding error responses into string if decoding into JSON fails #995
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#995
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?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/689
Author: @Peter-Schorn
Created: 6/10/2021
Status: ✅ Merged
Merged: 6/19/2021
Merged by: @stephanebruckert
Base:
master← Head:master📝 Commits (8)
9ebb336Fixed a bug in the initializers for the auth managers that produced a spurious warning message if you provide a cache handler and you set a value for the "SPOTIPY_CLIENT_USERNAME" environment variable.ffe5f03fixed a bug in _get_auth_response_local_server which occurs if you provide a state parameter and click cancel in the authorization dialog3360c9cFallback on decoding the error response body into text if decoding into JSON fails.fc67526Fall back on decoding oauth errors into text if decoding into JSON fails.f26b9c4Merge pull request #1 from plamere/master631af24Fixed unusedhttp_errorname in exeception clause.e99d11eUpdated CHANGELOG9bddb1fMerge branch 'master' into master📊 Changes
3 files changed (+121 additions, -113 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
spotipy/client.py(+14 -8)📝
spotipy/oauth2.py(+106 -105)📄 Description
In their ultimate wisdom, Spotify decided to return a plain string for some error responses instead of returning one of their documented JSON error objects.
This addresses #688. Instead of
you get
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.