casualsnek / onthespot

qt based music downloader written in python
GNU General Public License v2.0
741 stars 53 forks source link

Failed logging in user - invalid credentials #47

Open blp77 opened 1 year ago

blp77 commented 1 year ago

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

casualsnek commented 1 year ago

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

blp77 commented 1 year ago

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?

Igorgro commented 1 year ago

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

blp77 commented 1 year ago

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?

Igorgro commented 1 year ago

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