Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- raceback (most recent call last):
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 232, in _request_access_token
- response.raise_for_status()
- ~~~~~~~~~~~~~~~~~~~~~~~~~^^
- File "/home/zenin/.local/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
- raise HTTPError(http_error_msg, response=self)
- requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://accounts.spotify.com/api/token
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/bin/beatprints", line 8, in <module>
- sys.exit(main())
- ~~~~^^
- File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 259, in main
- create_poster()
- ~~~~~~~~~~~~~^^
- File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 249, in create_poster
- album = select_album(conf.SEARCH_LIMIT)
- File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 93, in select_album
- result = sp.get_album(query, limit, shuffle)
- File "/usr/lib/python3.13/site-packages/BeatPrints/spotify.py", line 200, in get_album
- result = self.spotify.search(q=query, type="album", limit=limit)
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 604, in search
- return self._get(
- ~~~~~~~~~^
- "search", q=q, limit=limit, offset=offset, type=type, market=market
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- )
- ^
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 324, in _get
- return self._internal_call("GET", url, payload, kwargs)
- ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 250, in _internal_call
- headers = self._auth_headers()
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 241, in _auth_headers
- token = self.auth_manager.get_access_token(as_dict=False)
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 207, in get_access_token
- token_info = self._request_access_token()
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 236, in _request_access_token
- self._handle_oauth_error(http_error)
- ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
- File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 117, in _handle_oauth_error
- raise SpotifyOauthError(
- ...<3 lines>...
- )
- spotipy.exceptions.SpotifyOauthError: error: invalid_client, error_description: None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement