mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #654] Problems with recent changes to client.py #388
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#388
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 @jrauvola on GitHub (Mar 5, 2021).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/654
Describe the bug
A clear and concise description of what the bug is.
I am developing an application that takes in user Spotify data. The change made a few days ago from method_whitelist to allowed_methods is throwing errors for some but not all of my group members
Your code
Share a complete minimal working example.
sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id='e2d254e0598f4ff49c5ce98717d35334',
client_secret='db0d037ea3fe46d4b62c205ce5208d63',
redirect_uri='http://localhost:8888/callback',
scope="user-library-read",
open_browser = False))
Expected behavior
A clear and concise description of what you expected to happen.
All I want is to gain access to the mock user account - so I should receive the typical output for this line of code as explained in the documentation
Output
Paste and format errors (with complete stacktrace) or logs. Make sure to remove sensitive information.
TypeError Traceback (most recent call last)
in ()
3 redirect_uri='http://localhost:8888/callback',
4 scope="user-library-read",
----> 5 open_browser = False))
1 frames
/usr/local/lib/python3.7/dist-packages/spotipy/client.py in _build_session(self)
198 status=self.status_retries,
199 backoff_factor=self.backoff_factor,
--> 200 status_forcelist=self.status_forcelist)
201
202 adapter = requests.adapters.HTTPAdapter(max_retries=retry)
TypeError: init() got an unexpected keyword argument 'allowed_methods'
Environment:
Google Colab
Additional context
Add any other context about the problem here.
@stephanebruckert commented on GitHub (Mar 5, 2021):
Do you have spotipy 2.17.1?
@jrauvola commented on GitHub (Mar 5, 2021):
Yes I do
Command ran:
pip list | grep spotipy:
Output:
spotipy 2.17.1
@stephanebruckert commented on GitHub (Mar 6, 2021):
Strange, 2.17.1 aimed to fix that. Could you also please check the version you have for
urllib3andrequests?@jrauvola commented on GitHub (Mar 8, 2021):
Updated urllib3 & requests - works now - thank you for your time