mirror of
https://github.com/akashrchandran/syrics.git
synced 2026-04-27 01:55:50 +03:00
[GH-ISSUE #40] today sp_dc provided is invalid, please check it again! #24
Labels
No labels
bug
documentation
easy to add
enhancement
enhancement
good first issue
hacktoberfest
hacktoberfest
priority: medium
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/syrics#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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!
@akashrchandran commented on GitHub (Jun 9, 2025):
Could you please try using the latest version I have published one.
@sdy623 commented on GitHub (Jun 10, 2025):
syrics.exceptions.TOTPGenerationException
@akashrchandran commented on GitHub (Jun 14, 2025):
csn you provide stack trace of the entire error.
@sdy623 commented on GitHub (Jun 21, 2025):
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!
@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!
@akashrchandran commented on GitHub (Jun 22, 2025):
Are you using the latest version?