[GH-ISSUE #94] [Bug Report] OAuth Not Waiting For Callback #79

Closed
opened 2026-02-27 04:57:25 +03:00 by kerem · 8 comments
Owner

Originally created by @flaccidcake on GitHub (Oct 4, 2025).
Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/94

Originally assigned to: @Googolplexed0 on GitHub.

Zotify Version
v0.9.21

Bug Description
Prompt to login, use provided link, instantly hit with the error message below.

Bug Triggering Command
Any command that involves logging in

Error Traceback / Logs
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "c:\users-me-.local\bin\zotify.exe_main
.py", line 6, in
sys.exit(main())
~~~~^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\zotify_main
.py", line 119, in main
args.func(args)
~~~~~~~~~^^^^^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 228, in client
Zotify(args)
~~~~~~^^^^^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 578, in init
Zotify.login(args)
~~~~~~~~~~~~^^^^^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 613, in login
session_builder.login_credentials = OAuth(MercuryRequests.keymaster_client_id, redirect_url, oauth_print).flow()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\librespot\oauth.py", line 117, in flow
self.request_token()
~~~~~~~~~~~~~~~~~~^^
File "C:\Users-me-\pipx\venvs\zotify\Lib\site-packages\librespot\oauth.py", line 54, in request_token
raise RuntimeError("You need to provide a code before!")
RuntimeError: Y

Config File
Cant seem to find it?

Additional Context
Don't know the context, first time using anything like this really

Originally created by @flaccidcake on GitHub (Oct 4, 2025). Original GitHub issue: https://github.com/Googolplexed0/zotify/issues/94 Originally assigned to: @Googolplexed0 on GitHub. **Zotify Version** v0.9.21 **Bug Description** Prompt to login, use provided link, instantly hit with the error message below. **Bug Triggering Command** Any command that involves logging in **Error Traceback / Logs** 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\-me-\.local\bin\zotify.exe\__main__.py", line 6, in <module> sys.exit(main()) ~~~~^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\zotify\__main__.py", line 119, in main args.func(args) ~~~~~~~~~^^^^^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\zotify\app.py", line 228, in client Zotify(args) ~~~~~~^^^^^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 578, in __init__ Zotify.login(args) ~~~~~~~~~~~~^^^^^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\zotify\config.py", line 613, in login session_builder.login_credentials = OAuth(MercuryRequests.keymaster_client_id, redirect_url, oauth_print).flow() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\librespot\oauth.py", line 117, in flow self.request_token() ~~~~~~~~~~~~~~~~~~^^ File "C:\Users\-me-\pipx\venvs\zotify\Lib\site-packages\librespot\oauth.py", line 54, in request_token raise RuntimeError("You need to provide a code before!") RuntimeError: Y **Config File** Cant seem to find it? **Additional Context** Don't know the context, first time using anything like this really
kerem 2026-02-27 04:57:25 +03:00
Author
Owner

@RGPZ commented on GitHub (Oct 5, 2025):

You could try updating to v0.9.27, you're on a rather old version.

<!-- gh-comment-id:3368832465 --> @RGPZ commented on GitHub (Oct 5, 2025): You could try updating to v0.9.27, you're on a rather old version.
Author
Owner

@flaccidcake commented on GitHub (Oct 6, 2025):

theres a v0.9.27?

<!-- gh-comment-id:3369588034 --> @flaccidcake commented on GitHub (Oct 6, 2025): theres a v0.9.27?
Author
Owner

@fafamobile commented on GitHub (Oct 7, 2025):

theres a v0.9.27?

run pipx install git+https://github.com/Googolplexed0/zotify.git --force to update

<!-- gh-comment-id:3374995355 --> @fafamobile commented on GitHub (Oct 7, 2025): > theres a v0.9.27? run `pipx install git+https://github.com/Googolplexed0/zotify.git --force` to update
Author
Owner

@flaccidcake commented on GitHub (Oct 8, 2025):

ok so the issue is that i just cant login, have any of you guys used this recently?

<!-- gh-comment-id:3379216314 --> @flaccidcake commented on GitHub (Oct 8, 2025): ok so the issue is that i just cant login, have any of you guys used this recently?
Author
Owner

@flaccidcake commented on GitHub (Oct 8, 2025):

Image
<!-- gh-comment-id:3379246025 --> @flaccidcake commented on GitHub (Oct 8, 2025): <img width="817" height="364" alt="Image" src="https://github.com/user-attachments/assets/53e8126c-29f6-43e2-ace0-58bcb9b59718" />
Author
Owner

@Googolplexed0 commented on GitHub (Oct 9, 2025):

Are you seeing the OAuth link, clicking on it, and logging in through a browser?

Try in CMD/Terminal instead of Powershell.

<!-- gh-comment-id:3384087238 --> @Googolplexed0 commented on GitHub (Oct 9, 2025): Are you seeing the OAuth link, clicking on it, and logging in through a browser? Try in CMD/Terminal instead of Powershell.
Author
Owner

@flaccidcake commented on GitHub (Oct 9, 2025):

Same thing

Image
<!-- gh-comment-id:3385541559 --> @flaccidcake commented on GitHub (Oct 9, 2025): Same thing <img width="937" height="461" alt="Image" src="https://github.com/user-attachments/assets/cc8e95a0-2d3f-484d-bfa4-f4fc7b5426db" />
Author
Owner

@Googolplexed0 commented on GitHub (Oct 18, 2025):

Does it error out before you click on the link (as soon as it appears in the terminal), as you are clicking on it, after you click but before your browser establishes a connection, or after logging in through your browser? Without some more detailed info about your config and/or system I cannot help much.

<!-- gh-comment-id:3418390109 --> @Googolplexed0 commented on GitHub (Oct 18, 2025): Does it error out before you click on the link (as soon as it appears in the terminal), as you are clicking on it, after you click but before your browser establishes a connection, or after logging in through your browser? Without some more detailed info about your config and/or system I cannot help much.
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#79
No description provided.