[GH-ISSUE #47] Failed logging in user - invalid credentials #36

Open
opened 2026-03-04 12:28:12 +03:00 by kerem · 6 comments
Owner

Originally created by @blp77 on GitHub (Mar 9, 2023).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/47

in the logs its says "invalid credentials", but credentials are correct.
already deleted config file to eliminate possible other cause, but it didn't fix the problem.
rm .config/casualOnTheSpot/config.json
Also tried to login with email address instead username, same error.

here the console output:

18:05:12,130 :: gui/mainui.py -> 523: __add_account() :: INFO] -> Add account clicked
18:05:12,131 :: utils/utils.py -> 18: login_user() :: INFO] -> logging in user 'tm31****@.'
18:05:12,131 :: utils/utils.py -> 24: login_user() :: INFO] -> Session file exists for user, attempting to use it 'tm31
***@.'
18:05:14,091 :: utils/utils.py -> 38: login_user() :: ERROR] -> Failed logging in user 'tm31
***@*.', invalid credentials
18:05:14,092 :: runtimedata.py -> 48: handle_exception() :: CRITICAL] -> Uncaught exception

Originally created by @blp77 on GitHub (Mar 9, 2023). Original GitHub issue: https://github.com/casualsnek/onthespot/issues/47 in the logs its says "invalid credentials", but credentials are correct. already deleted config file to eliminate possible other cause, but it didn't fix the problem. rm .config/casualOnTheSpot/config.json Also tried to login with email address instead username, same error. here the console output: 18:05:12,130 :: gui/mainui.py -> 523: __add_account() :: INFO] -> Add account clicked 18:05:12,131 :: utils/utils.py -> 18: login_user() :: INFO] -> logging in user 'tm31****@****.***' 18:05:12,131 :: utils/utils.py -> 24: login_user() :: INFO] -> Session file exists for user, attempting to use it 'tm31****@****.***' 18:05:14,091 :: utils/utils.py -> 38: login_user() :: ERROR] -> Failed logging in user 'tm31****@****.***', invalid credentials 18:05:14,092 :: runtimedata.py -> 48: handle_exception() :: CRITICAL] -> Uncaught exception
Author
Owner

@casualsnek commented on GitHub (Mar 10, 2023):

Can you try clearing config as well as the session file at %appdata%/.cache/casualOnTheSpot and try logging in again !

<!-- gh-comment-id:1463384232 --> @casualsnek commented on GitHub (Mar 10, 2023): Can you try clearing config as well as the session file at ```%appdata%/.cache/casualOnTheSpot``` and try logging in again !
Author
Owner

@blp77 commented on GitHub (Mar 11, 2023):

session file deleted, unfortunately got similar error

[2023-03-10 21:57:52,813 :: gui/mainui.py -> 523: __add_account() :: INFO] -> Add account clicked
[2023-03-10 21:57:52,813 :: utils/utils.py -> 18: login_user() :: INFO] -> logging in user 'tm31****@.'
[2023-03-10 21:57:52,814 :: utils/utils.py -> 43: login_user() :: INFO] -> Session file does not exist user 'tm31
***@.', attempting login with uname/pass
[2023-03-10 21:57:52,814 :: utils/utils.py -> 45: login_user() :: INFO] -> logging in user 'tm31
***@.'
[2023-03-10 21:57:54,999 :: utils/utils.py -> 52: login_user() :: ERROR] -> Failed logging in user 'tm31
***@*.', unexpected error !
[2023-03-10 21:57:55,000 :: gui/mainui.py -> 551: __add_account() :: ERROR] -> Account add failed for : tm31*****************

I tried again and deleted config file together with session file. Still same error.
What makes me wonder is that after deleting both files, the UI "Configuration" tab still knows path to my download location. Is there anything else I should try to clear?

<!-- gh-comment-id:1464807539 --> @blp77 commented on GitHub (Mar 11, 2023): session file deleted, unfortunately got similar error [2023-03-10 21:57:52,813 :: gui/mainui.py -> 523: __add_account() :: INFO] -> Add account clicked [2023-03-10 21:57:52,813 :: utils/utils.py -> 18: login_user() :: INFO] -> logging in user 'tm31****@****.***' [2023-03-10 21:57:52,814 :: utils/utils.py -> 43: login_user() :: INFO] -> Session file does not exist user 'tm31****@****.***', attempting login with uname/pass [2023-03-10 21:57:52,814 :: utils/utils.py -> 45: login_user() :: INFO] -> logging in user 'tm31****@****.***' [2023-03-10 21:57:54,999 :: utils/utils.py -> 52: login_user() :: ERROR] -> Failed logging in user 'tm31****@****.***', unexpected error ! [2023-03-10 21:57:55,000 :: gui/mainui.py -> 551: __add_account() :: ERROR] -> Account add failed for : tm31***************** I tried again and deleted config file together with session file. Still same error. What makes me wonder is that after deleting both files, the UI "Configuration" tab still knows path to my download location. Is there anything else I should try to clear?
Author
Owner

@Igorgro commented on GitHub (Mar 18, 2023):

Confirimng this issue. Deleting settings and sesion doesn't work

<!-- gh-comment-id:1474956161 --> @Igorgro commented on GitHub (Mar 18, 2023): Confirimng this issue. Deleting settings and sesion doesn't work
Author
Owner

@blp77 commented on GitHub (Apr 3, 2023):

I think I found what was causing this... its roaming...
I was traveling outside of my country in which Spotify was registered. Seems like after XX days being abroad they cut off your access via mobile app, but not web app.
My best guess is that "onthespot" acts as a mobile app from Spotify servers point of view and Spotify rejects login to the service after XX days if geolocation does not match country of origin.

@Igorgro Can you confirm you have been using it from abroad or via vpn etc?

<!-- gh-comment-id:1494087805 --> @blp77 commented on GitHub (Apr 3, 2023): I think I found what was causing this... its roaming... I was traveling outside of my country in which Spotify was registered. Seems like after XX days being abroad they cut off your access via mobile app, but not web app. My best guess is that "onthespot" acts as a mobile app from Spotify servers point of view and Spotify rejects login to the service after XX days if geolocation does not match country of origin. @Igorgro Can you confirm you have been using it from abroad or via vpn etc?
Author
Owner

@Igorgro commented on GitHub (Apr 4, 2023):

I am using it through wiregurad (it wraps all traffic). If I open browser, spotify works well there

<!-- gh-comment-id:1496145669 --> @Igorgro commented on GitHub (Apr 4, 2023): I am using it through wiregurad (it wraps **all** traffic). If I open browser, spotify works well there
Author
Owner

@SteveDesmond-ca commented on GitHub (Jul 26, 2024):

Confirmed, trying to log in via onthespot while connected via VPN fails; disconnect from VPN, login succeeds

<!-- gh-comment-id:2253167920 --> @SteveDesmond-ca commented on GitHub (Jul 26, 2024): Confirmed, trying to log in via onthespot while connected via VPN fails; disconnect from VPN, login succeeds
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/onthespot#36
No description provided.