[GH-ISSUE #40] today sp_dc provided is invalid, please check it again! #24

Closed
opened 2026-02-27 19:05:27 +03:00 by kerem · 6 comments
Owner

Originally created by @beshelf on GitHub (Jun 9, 2025).
Original GitHub issue: https://github.com/akashrchandran/syrics/issues/40

sp_dc provided is invalid, please check it again!

Originally created by @beshelf on GitHub (Jun 9, 2025). Original GitHub issue: https://github.com/akashrchandran/syrics/issues/40 sp_dc provided is invalid, please check it again!
kerem closed this issue 2026-02-27 19:05:27 +03:00
Author
Owner

@akashrchandran commented on GitHub (Jun 9, 2025):

Could you please try using the latest version I have published one.

<!-- gh-comment-id:2956193807 --> @akashrchandran commented on GitHub (Jun 9, 2025): Could you please try using the latest version I have published one.
Author
Owner

@sdy623 commented on GitHub (Jun 10, 2025):

syrics.exceptions.TOTPGenerationException

<!-- gh-comment-id:2957524989 --> @sdy623 commented on GitHub (Jun 10, 2025): syrics.exceptions.TOTPGenerationException
Author
Owner

@akashrchandran commented on GitHub (Jun 14, 2025):

syrics.exceptions.TOTPGenerationException

csn you provide stack trace of the entire error.

<!-- gh-comment-id:2972790541 --> @akashrchandran commented on GitHub (Jun 14, 2025): > syrics.exceptions.TOTPGenerationException csn you provide stack trace of the entire error.
Author
Owner

@sdy623 commented on GitHub (Jun 21, 2025):

syrics.exceptions.TOTPGenerationException

csn you provide stack trace of the entire error.

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

Traceback (most recent call last):
File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in
sp = Spotify(SPOTIFY_TOKEN, proxies={"http": "http://{}".format(proxy)})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 39, in init
self.login()
File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 55, in login
raise TOTPGenerationException("Error generating TOTP, retry!") from e
syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry!
(JPOP-Fetch) root@JAXA:~/JPOP-Fetch# python collect_raw_precision_lyrics_sp.py
Traceback (most recent call last):
File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 45, in login
server_time = 1e3 * server_time_response.json()["serverTime"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'serverTime'

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

Traceback (most recent call last):
File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in
sp = Spotify(SPOTIFY_TOKEN, proxies={"http": "http://{}".format(proxy)})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 39, in init
self.login()
File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 55, in login
raise TOTPGenerationException("Error generating TOTP, retry!") from e
syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry!

<!-- gh-comment-id:2993176395 --> @sdy623 commented on GitHub (Jun 21, 2025): > > syrics.exceptions.TOTPGenerationException > > csn you provide stack trace of the entire error. The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in <module> sp = Spotify(SPOTIFY_TOKEN, proxies={"http": "http://{}".format(proxy)}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 39, in __init__ self.login() File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 55, in login raise TOTPGenerationException("Error generating TOTP, retry!") from e syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry! (JPOP-Fetch) root@JAXA:~/JPOP-Fetch# python collect_raw_precision_lyrics_sp.py Traceback (most recent call last): File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 45, in login server_time = 1e3 * server_time_response.json()["serverTime"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ KeyError: 'serverTime' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in <module> sp = Spotify(SPOTIFY_TOKEN, proxies={"http": "http://{}".format(proxy)}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 39, in __init__ self.login() File "/root/JPOP-Fetch/.venv/lib/python3.11/site-packages/syrics/api.py", line 55, in login raise TOTPGenerationException("Error generating TOTP, retry!") from e syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry!
Author
Owner

@sdy623 commented on GitHub (Jun 21, 2025):

The problem caused with the change of the Spotify API server_time_response response with 404

(JPOP-Fetch) root@JAXA:~/JPOP-Fetch# python collect_raw_precision_lyrics_sp.py
<Response [404]>
Traceback (most recent call last):
File "/root/syrics/syrics/api.py", line 45, in login
server_time = 1e3 * server_time_response.json()["serverTime"]
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'serverTime'

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

Traceback (most recent call last):
File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in
sp = Spotify(SPOTIFY_TOKEN)
^^^^^^^^^^^^^^^^^^^^^^
File "/root/syrics/syrics/api.py", line 38, in init
self.login()
File "/root/syrics/syrics/api.py", line 55, in login
raise TOTPGenerationException("Error generating TOTP, retry!") from e
syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry!

<!-- gh-comment-id:2993181543 --> @sdy623 commented on GitHub (Jun 21, 2025): The problem caused with the change of the Spotify API server_time_response response with 404 (JPOP-Fetch) root@JAXA:~/JPOP-Fetch# python collect_raw_precision_lyrics_sp.py <Response [404]> Traceback (most recent call last): File "/root/syrics/syrics/api.py", line 45, in login server_time = 1e3 * server_time_response.json()["serverTime"] ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ KeyError: 'serverTime' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/root/JPOP-Fetch/collect_raw_precision_lyrics_sp.py", line 27, in <module> sp = Spotify(SPOTIFY_TOKEN) ^^^^^^^^^^^^^^^^^^^^^^ File "/root/syrics/syrics/api.py", line 38, in __init__ self.login() File "/root/syrics/syrics/api.py", line 55, in login raise TOTPGenerationException("Error generating TOTP, retry!") from e syrics.exceptions.TOTPGenerationException: Error generating TOTP, retry!
Author
Owner

@akashrchandran commented on GitHub (Jun 22, 2025):

Are you using the latest version?

<!-- gh-comment-id:2994256931 --> @akashrchandran commented on GitHub (Jun 22, 2025): Are you using the latest version?
Sign in to join this conversation.
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/syrics#24
No description provided.