Advertisement
nick2808

Error Message

Apr 15th, 2025
361
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.61 KB | None | 0 0
  1. raceback (most recent call last):
  2.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 232, in _request_access_token
  3.     response.raise_for_status()
  4.     ~~~~~~~~~~~~~~~~~~~~~~~~~^^
  5.   File "/home/zenin/.local/lib/python3.13/site-packages/requests/models.py", line 1024, in raise_for_status
  6.     raise HTTPError(http_error_msg, response=self)
  7. requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://accounts.spotify.com/api/token
  8.  
  9. During handling of the above exception, another exception occurred:
  10.  
  11. Traceback (most recent call last):
  12.   File "/usr/bin/beatprints", line 8, in <module>
  13.     sys.exit(main())
  14.              ~~~~^^
  15.   File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 259, in main
  16.     create_poster()
  17.     ~~~~~~~~~~~~~^^
  18.   File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 249, in create_poster
  19.     album = select_album(conf.SEARCH_LIMIT)
  20.   File "/usr/lib/python3.13/site-packages/cli/prompt.py", line 93, in select_album
  21.     result = sp.get_album(query, limit, shuffle)
  22.   File "/usr/lib/python3.13/site-packages/BeatPrints/spotify.py", line 200, in get_album
  23.     result = self.spotify.search(q=query, type="album", limit=limit)
  24.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 604, in search
  25.     return self._get(
  26.            ~~~~~~~~~^
  27.         "search", q=q, limit=limit, offset=offset, type=type, market=market
  28.         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  29.     )
  30.     ^
  31.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 324, in _get
  32.     return self._internal_call("GET", url, payload, kwargs)
  33.            ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 250, in _internal_call
  35.     headers = self._auth_headers()
  36.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/client.py", line 241, in _auth_headers
  37.     token = self.auth_manager.get_access_token(as_dict=False)
  38.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 207, in get_access_token
  39.     token_info = self._request_access_token()
  40.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 236, in _request_access_token
  41.     self._handle_oauth_error(http_error)
  42.     ~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^
  43.   File "/home/zenin/.local/lib/python3.13/site-packages/spotipy/oauth2.py", line 117, in _handle_oauth_error
  44.     raise SpotifyOauthError(
  45.     ...<3 lines>...
  46.     )
  47. spotipy.exceptions.SpotifyOauthError: error: invalid_client, error_description: None
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement