spotDL / spotify-downloader

Download your Spotify playlists and songs along with album art and metadata (from YouTube if a match is found).
https://spotdl.readthedocs.io/en/latest/
MIT License
17.14k stars 1.57k forks source link

Can't download certain album #2129

Closed Qantum75 closed 3 months ago

Qantum75 commented 3 months ago

System OS

Windows

Python Version

3.10 (CPython)

Install Source

pip / PyPi

Install version / commit hash

v4.2.5

Expected Behavior vs Actual Behavior

Wanted to download playlist (https://open.spotify.com/playlist/0qhAzR24JvQj19FpdVUITe?si=cd986332afe2431b) but nothing downloading other things download normally

Steps to reproduce - Ensure to include actual links!

  1. spotdl (https://open.spotify.com/playlist/0qhAzR24JvQj19FpdVUITe?si=cd986332afe2431b)
  2. nothing happening

Traceback

Updating web app

Files are stored in current directory to save them to temporary directory disable the `web_use_output_dir` option
Starting web server

INFO:     Started server process [15708]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://localhost:8800 (Press CTRL+C to quit)
INFO:     ::1:55969 - "GET / HTTP/1.1" 200 OK
INFO:     ::1:55969 - "GET /assets/index-CGxZV3ZT.js HTTP/1.1" 200 OK
INFO:     ::1:55970 - "GET /assets/index-BDDgGyM9.css HTTP/1.1" 200 OK
INFO:     ('::1', 55971) - "WebSocket /api/ws?client_id=2df2c9df-0c41-40f2-867c-2ac1532a1a02" [accepted]
INFO:     Client 2df2c9df-0c41-40f2-867c-2ac1532a1a02 connected
INFO:     connection open
INFO:     ::1:55969 - "GET /api/version HTTP/1.1" 200 OK
INFO:     ::1:55970 - "GET /api/settings?client_id=2df2c9df-0c41-40f2-867c-2ac1532a1a02 HTTP/1.1" 200 OK
Max Retries reached
INFO:     ::1:55970 - "GET /api/url?url=https:%2F%2Fopen.spotify.com%2Fplaylist%2F5BCwA2w1BKSUdXxsA048R5%3Fsi%3Dcb7a67a521834011 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
urllib3.exceptions.ResponseError: too many 429 error responses

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "requests\adapters.py", line 486, in send
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 938, in urlopen
  File "urllib3\util\retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/albums/2UJwKSBUz6rtW4QLK74kQu (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "spotipy\client.py", line 266, in _internal_call
  File "requests\sessions.py", line 589, in request
  File "requests\sessions.py", line 703, in send
  File "requests\adapters.py", line 510, in send
requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/albums/2UJwKSBUz6rtW4QLK74kQu (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
  File "uvicorn\middleware\proxy_headers.py", line 84, in __call__
  File "fastapi\applications.py", line 292, in __call__
  File "starlette\applications.py", line 122, in __call__
  File "starlette\middleware\errors.py", line 184, in __call__
  File "starlette\middleware\errors.py", line 162, in __call__
  File "starlette\middleware\cors.py", line 83, in __call__
  File "starlette\middleware\exceptions.py", line 79, in __call__
  File "starlette\middleware\exceptions.py", line 68, in __call__
  File "fastapi\middleware\asyncexitstack.py", line 20, in __call__
  File "fastapi\middleware\asyncexitstack.py", line 17, in __call__
  File "starlette\routing.py", line 718, in __call__
  File "starlette\routing.py", line 276, in handle
  File "starlette\routing.py", line 66, in app
  File "fastapi\routing.py", line 273, in app
  File "fastapi\routing.py", line 192, in run_endpoint_function
  File "starlette\concurrency.py", line 41, in run_in_threadpool
  File "anyio\to_thread.py", line 33, in run_sync
  File "anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
  File "anyio\_backends\_asyncio.py", line 807, in run
  File "spotdl\utils\web.py", line 315, in songs_from_url
  File "spotdl\types\song.py", line 310, in from_url
  File "spotdl\types\song.py", line 310, in <listcomp>
  File "spotdl\types\song.py", line 100, in from_url
  File "spotipy\client.py", line 461, in album
  File "spotdl\utils\spotify.py", line 195, in _get
  File "spotipy\client.py", line 307, in _internal_call
spotipy.exceptions.SpotifyException: http status: 429, code:-1 - /v1/albums/2UJwKSBUz6rtW4QLK74kQu:
 Max Retries, reason: too many 429 error responses
Max Retries reached
INFO:     ::1:56006 - "GET /api/url?url=https:%2F%2Fopen.spotify.com%2Fplaylist%2F5BCwA2w1BKSUdXxsA048R5%3Fsi%3Dcb7a67a521834011 HTTP/1.1" 500 Internal Server Error
ERROR:    Exception in ASGI application
urllib3.exceptions.ResponseError: too many 429 error responses

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "requests\adapters.py", line 486, in send
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 948, in urlopen
  File "urllib3\connectionpool.py", line 938, in urlopen
  File "urllib3\util\retry.py", line 515, in increment
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/tracks/3F9ByoUqu31xU0I3G5xfVg (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "spotipy\client.py", line 266, in _internal_call
  File "requests\sessions.py", line 589, in request
  File "requests\sessions.py", line 703, in send
  File "requests\adapters.py", line 510, in send
requests.exceptions.RetryError: HTTPSConnectionPool(host='api.spotify.com', port=443): Max retries exceeded with url: /v1/tracks/3F9ByoUqu31xU0I3G5xfVg (Caused by ResponseError('too many 429 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "uvicorn\protocols\http\h11_impl.py", line 408, in run_asgi
  File "uvicorn\middleware\proxy_headers.py", line 84, in __call__
  File "fastapi\applications.py", line 292, in __call__
  File "starlette\applications.py", line 122, in __call__
  File "starlette\middleware\errors.py", line 184, in __call__
  File "starlette\middleware\errors.py", line 162, in __call__
  File "starlette\middleware\cors.py", line 83, in __call__
  File "starlette\middleware\exceptions.py", line 79, in __call__
  File "starlette\middleware\exceptions.py", line 68, in __call__
  File "fastapi\middleware\asyncexitstack.py", line 20, in __call__
  File "fastapi\middleware\asyncexitstack.py", line 17, in __call__
  File "starlette\routing.py", line 718, in __call__
  File "starlette\routing.py", line 276, in handle
  File "starlette\routing.py", line 66, in app
  File "fastapi\routing.py", line 273, in app
  File "fastapi\routing.py", line 192, in run_endpoint_function
  File "starlette\concurrency.py", line 41, in run_in_threadpool
  File "anyio\to_thread.py", line 33, in run_sync
  File "anyio\_backends\_asyncio.py", line 877, in run_sync_in_worker_thread
  File "anyio\_backends\_asyncio.py", line 807, in run
  File "spotdl\utils\web.py", line 315, in songs_from_url
  File "spotdl\types\song.py", line 310, in from_url
  File "spotdl\types\song.py", line 310, in <listcomp>
  File "spotdl\types\song.py", line 84, in from_url
  File "spotipy\client.py", line 371, in track
  File "spotdl\utils\spotify.py", line 195, in _get
  File "spotipy\client.py", line 307, in _internal_call
spotipy.exceptions.SpotifyException: http status: 429, code:-1 - /v1/tracks/3F9ByoUqu31xU0I3G5xfVg:
 Max Retries, reason: too many 429 error responses

Other details

No response