[GH-ISSUE #150] KeyError: 'id' #133

Closed
opened 2026-02-27 04:57:44 +03:00 by kerem · 1 comment
Owner

Originally created by @U2EZNeko on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/150

Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users\nobod\appdata\roaming\python\python313\scripts\zotify.exe_main
.py", line 6, in
sys.exit(main())
~~~~^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify_main
.py", line 143, in main
client(args, modes)
~~~~~~^^^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 85, in client
perform_query(args)
~~~~~~~~~~~~~^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 77, in perform_query
raise e
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 48, in perform_query
Query(Zotify.DATETIME_LAUNCH).request(urls).execute()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1725, in execute
self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs))
~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1538, in parse_direct_metadata
obj.parse_metadata(item_resp)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1382, in parse_metadata
self.update_id(artist_resp[ID])
~~~~~~~~~~~^^^^
KeyError: 'id'

Recently tried updating from regular branch to API branch.

Configs are pretty much fresh apart from my directories (semi fresh windows install)

Is this an error on my side? I tried reinstalling and uninstall + install again with no luck.

Best regards, hope you had a good new year!

Originally created by @U2EZNeko on GitHub (Jan 12, 2026). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/150 Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "c:\users\nobod\appdata\roaming\python\python313\scripts\zotify.exe\__main__.py", line 6, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\__main__.py", line 143, in main client(args, modes) ~~~~~~^^^^^^^^^^^^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 85, in client perform_query(args) ~~~~~~~~~~~~~^^^^^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 77, in perform_query raise e File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\app.py", line 48, in perform_query Query(Zotify.DATETIME_LAUNCH).request(urls).execute() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1725, in execute self.parse_direct_metadata(*self.fetch_direct_metadata(direct_reqs_objs)) ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1538, in parse_direct_metadata obj.parse_metadata(item_resp) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "C:\Users\nobod\AppData\Roaming\Python\Python313\site-packages\zotify\api.py", line 1382, in parse_metadata self.update_id(artist_resp[ID]) ~~~~~~~~~~~^^^^ KeyError: 'id' Recently tried updating from regular branch to API branch. Configs are pretty much fresh apart from my directories (semi fresh windows install) Is this an error on my side? I tried reinstalling and uninstall + install again with no luck. Best regards, hope you had a good new year!
kerem closed this issue 2026-02-27 04:57:44 +03:00
Author
Owner

@Googolplexed0 commented on GitHub (Jan 20, 2026):

This has been happening for a while, the parse_metadata function was not very safe if any expected fields were missing. See if the new-hierarchy branch fixes this issue, I rewrote the parsing function from scratch.

<!-- gh-comment-id:3770809018 --> @Googolplexed0 commented on GitHub (Jan 20, 2026): This has been happening for a while, the `parse_metadata` function was not very safe if any expected fields were missing. See if the [new-hierarchy branch](https://github.com/Googolplexed0/zotify/tree/new-hierarchy) fixes this issue, I rewrote the parsing function from scratch.
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/zotify#133
No description provided.