[GH-ISSUE #4] TypeError: SpotifyApi.__init__() missing 1 required keyword-only argument: 'secrets_url' #2

Closed
opened 2026-03-04 14:58:29 +03:00 by kerem · 0 comments
Owner

Originally created by @frymex on GitHub (Feb 7, 2026).
Original GitHub issue: https://github.com/GladistonXD/votify-fix/issues/4

File "/root/spotify-dl-api/venv/lib/python3.12/site-packages/fastapi/routing.py", line 243, in run_endpoint_function
return await dependant.call(**values)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/spotify-dl-api/app/main.py", line 98, in on_spotify_song
response = download(track_id)
^^^^^^^^^^^^^^^^^^
File "/root/spotify-dl-api/utils/spotify_dl.py", line 129, in download
spotify_api = SpotifyApi.from_cookies_file(cookies_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/spotify-dl-api/venv/lib/python3.12/site-packages/votify/spotify_api.py", line 88, in from_cookies_file
return cls(sp_dc=sp_dc, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: SpotifyApi.init() missing 1 required keyword-only argument: 'secrets_url'

Originally created by @frymex on GitHub (Feb 7, 2026). Original GitHub issue: https://github.com/GladistonXD/votify-fix/issues/4 File "/root/spotify-dl-api/venv/lib/python3.12/site-packages/fastapi/routing.py", line 243, in run_endpoint_function return await dependant.call(**values) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/spotify-dl-api/app/main.py", line 98, in on_spotify_song response = download(track_id) ^^^^^^^^^^^^^^^^^^ File "/root/spotify-dl-api/utils/spotify_dl.py", line 129, in download spotify_api = SpotifyApi.from_cookies_file(cookies_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/spotify-dl-api/venv/lib/python3.12/site-packages/votify/spotify_api.py", line 88, in from_cookies_file return cls(sp_dc=sp_dc, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: SpotifyApi.__init__() missing 1 required keyword-only argument: 'secrets_url'
kerem closed this issue 2026-03-04 14:58:29 +03:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/votify-fix#2
No description provided.