mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #609] [MERGED] Added more logging and fixed docs for search endpoint #962
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#962
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/609
Author: @Peter-Schorn
Created: 11/14/2020
Status: ✅ Merged
Merged: 11/15/2020
Merged by: @stephanebruckert
Base:
master← Head:master📝 Commits (10+)
6faf49cAdded an exception clause that catchesFileNotFoundErrorand logs a debug message inSpotifyOAuth.get_cached_token,SpotifyPKCE.get_cached_tokenandSpotifyImplicitGrant.get_cached_token.8ae2cddChanged docs forauthparameter ofSpotify.inittoaccess tokeninstead ofauthorization token. In issue #599, a user confused the access token with the authorization code.957a26aUpdated CHANGELOG.md04b2b02RemovedFileNotFoundErrorbecause it does not exist in python 2.7 (sigh) and replaced it with a call toos.path.exists.77a16dcReplacedos.path.existswitherror.errno == errno.ENOENTto supress errors when the cache file does not exist.caaabd5Merge branch 'master' into master1e6107eChanged docs forsearchto mention that you can provide multiple multiple types to search for. The query parameters of requests are now logged. Added log messages for when the access token and refresh tokens are retrieved and when they are refreshed. Other small grammar fixes.5493ec6Removed duplicate word "multiple" from CHANGELOG808946eMerge branch 'master' into masterbc29688Merge branch 'master' into master📊 Changes
3 files changed (+42 additions, -9 deletions)
View changed files
📝
CHANGELOG.md(+6 -0)📝
spotipy/client.py(+9 -7)📝
spotipy/oauth2.py(+27 -2)📄 Description
Logging the requests for retrieving the tokens and refreshing the tokens will make it easier to debug issues that users have with the library. For example, we could've solved #605 faster if these log messages were emitted. I also fixed the docs for the search endpoint to mention that you can search for multiple types at the same time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.