-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Login error, adding account failed #144
Comments
same issue |
Same here. Cant login on a fresh Fedora install. |
I also have the same problem here. |
Here to |
Seems for me I had entered the wrong password |
This is probably do to having a job running already, restart the app and add before you start |
Just restarted everything, and the error persists. Here is the console output onthespot generates from start to finish:
|
I've been using onthespot for a few months now and just recently started experiencing this error. It seems spotify has started blocking api access for datacenter ip addresses, after disabling my vpn I was able to log in fine. Here's an upstream issue with further context: kokarare1212/librespot-python#277 |
Fascinating, thank you. I am using a residential IP though and have this issue. |
To satisfy my curiosity try logging in on your phones hotspot or on a different ip address. |
Same of different IP and hotspots. |
Same here TS Version : 0.5
Config version: 0.5
Attempting to use system ffmpeg binary !
Using ffmpeg binary at: ffmpeg.exe
[2024-08-14 16:39:16,377 :: __init__ :: __init__.py -> 11: main() :: INFO] -> Starting application in
3
2
1
[2024-08-14 16:39:16,551 :: gui.main_ui :: gui\mainui.py -> 86: __init__() :: INFO] -> Initialising main window, logging session : 6175b8c4-dc95-46ad-ad73-b151b801c0be
[2024-08-14 16:39:16,566 :: gui.main_ui :: gui\mainui.py -> 102: __init__() :: INFO] -> Loading configurations..
[2024-08-14 16:39:16,566 :: gui.main_ui :: gui\mainui.py -> 474: __fill_configs() :: INFO] -> Config filled to UI
[2024-08-14 16:39:16,566 :: gui.main_ui :: gui\mainui.py -> 114: __init__() :: INFO] -> Preparing session loader
[2024-08-14 16:39:16,582 :: gui.main_ui :: gui\mainui.py -> 126: __init__() :: INFO] -> Preparing parsing queue processor
[2024-08-14 16:39:16,582 :: worker.session :: worker\session.py -> 17: run() :: INFO] -> Session loader has started !
[2024-08-14 16:39:16,582 :: gui.main_ui :: gui\mainui.py -> 170: set_table_props() :: INFO] -> Setting table item properties
[2024-08-14 16:39:16,582 :: worker.utility :: worker\utility.py -> 90: run() :: INFO] -> Parsing queue processor is active !
[2024-08-14 16:39:16,582 :: gui.main_ui :: gui\mainui.py -> 141: __init__() :: INFO] -> Main window init completed !
[2024-08-14 16:39:16,582 :: worker.utility :: worker\utility.py -> 92: run() :: INFO] -> Waiting for new item to parse
[2024-08-14 16:39:16,582 :: gui.main_ui :: gui\mainui.py -> 399:__generate_users_table() :: INFO] -> Accounts table was populated !
[2024-08-14 16:39:33,964 :: gui.main_ui :: gui\mainui.py -> 531: __add_account() :: INFO] -> Add account clicked
[2024-08-14 16:39:33,965 :: utils :: utils\utils.py -> 50: login_user() :: INFO] -> logging in user 'gaxi****@****.***'
[2024-08-14 16:39:33,966 :: utils :: utils\utils.py -> 75: login_user() :: INFO] -> Session file does not exist user 'gaxi****@****.***', attempting login with uname/pass
[2024-08-14 16:39:33,966 :: utils :: utils\utils.py -> 77: login_user() :: INFO] -> logging in user 'gaxi****@****.***'
[2024-08-14 16:39:35,345 :: utils :: utils\utils.py -> 84: login_user() :: ERROR] -> Failed logging in user 'gaxi****@****.***', unexpected error !
[2024-08-14 16:39:35,347 :: gui.main_ui :: gui\mainui.py -> 561: __add_account() :: ERROR] -> Account add failed for : [email protected]
[2024-08-14 16:39:38,820 :: gui.main_ui :: gui\mainui.py -> 531: __add_account() :: INFO] -> Add account clicked
[2024-08-14 16:39:38,820 :: gui.main_ui :: gui\mainui.py -> 564: __add_account() :: INFO] -> Credentials are empty >-<
[2024-08-14 16:40:27,787 :: gui.main_ui :: gui\mainui.py -> 531: __add_account() :: INFO] -> Add account clicked
[2024-08-14 16:40:27,788 :: utils :: utils\utils.py -> 50: login_user() :: INFO] -> logging in user '1213****@****.***'
[2024-08-14 16:40:27,788 :: utils :: utils\utils.py -> 75: login_user() :: INFO] -> Session file does not exist user '1213****@****.***', attempting login with uname/pass
[2024-08-14 16:40:27,789 :: utils :: utils\utils.py -> 77: login_user() :: INFO] -> logging in user '1213****@****.***'
[2024-08-14 16:40:29,155 :: utils :: utils\utils.py -> 84: login_user() :: ERROR] -> Failed logging in user '1213****@****.***', unexpected error !
[2024-08-14 16:40:29,156 :: gui.main_ui :: gui\mainui.py -> 561: __add_account() :: ERROR] -> Account add failed for : 12134171106
[2024-08-14 16:41:01,371 :: gui.main_ui :: gui\mainui.py -> 531: __add_account() :: INFO] -> Add account clicked
[2024-08-14 16:41:01,372 :: utils :: utils\utils.py -> 50: login_user() :: INFO] -> logging in user 'gaxi****@****.***'
[2024-08-14 16:41:01,372 :: utils :: utils\utils.py -> 75: login_user() :: INFO] -> Session file does not exist user 'gaxi****@****.***', attempting login with uname/pass
[2024-08-14 16:41:01,373 :: utils :: utils\utils.py -> 77: login_user() :: INFO] -> logging in user 'gaxi****@****.***'
[2024-08-14 16:41:02,937 :: utils :: utils\utils.py -> 84: login_user() :: ERROR] -> Failed logging in user 'gaxi****@****.***', unexpected error !
[2024-08-14 16:41:02,939 :: gui.main_ui :: gui\mainui.py -> 561: __add_account() :: ERROR] -> Account add failed for : xxxxxxxxxx```
![image](https://github.com/user-attachments/assets/242ea51b-203b-4349-b803-4c499f3c1e95)
|
There is a temporary solution, install python on your pc and run the following script. Next install the spotify desktop app on your pc, click on connected devices, and select librespot. The script should spit out a credentials.json file that can then be used to replace onthespot's cached login. it should be in C:\Users\(USERNAME)\.cache\casualOnTheSpot\sessions\ots_login...json Just replace it and relaunch onthespot. The login will work forever until you change your password. Linux users: download the script and run it using 'python script.py'. Then follow the same steps as above |
Thanks for your help @justin025, when I moved the credentials.json file to the \sessions\ folder, I renamed it exactly to "ots_login...json" as you mentioned (there was no existing file here at all, I hope that isn't an issue). However when I launch OTS again, it says "No session available for , login to at least one account !" Did I follow your steps incorrectly? |
Hey @justin025 when I ran this code it simply gives me an error of [WinError 10053] An established connection was aborted by software on the host computer, I don't know how to solve this error, if you know any solution I would appreciate it
|
thanks @justin025 worked a treat on my ubuntu box |
@myki-b nice pfp, onthespot first checks C:\Users\USERNAME\.config\casualonthespot\config.json to see available accounts and then uses the cached session. If the accounts field is empty in this file change it to the following:
Finally rename ots_login_...json to ots_login_a.json Onthespot will search for login 'a' in your sessions folder with the email above and login @josefilipe13 I received errors on my windows pc aswell but the code still spit out a credentials.json did you get it? Nonetheless open powershell/cmd, run 'pip install librespot' and run the file again. Don't worry when you uninstall python it will undo the command above. I noticed your using a vm, I'm not very knowledgeable about windows' build of python. Consider running the script using a linux iso |
Thank you mate, it worked like a charm |
@justin025 I don't know very well how to use Linux, but if I need to test on my own Windows without using a VM I can do that too, I'll test now |
@justin025 I managed to resolve my issue I modifided the config file of C:\Users\Valentin.config\casualOnTheSpot by adding the email and placing ots_login_a.json in that folder and not C:\Users\Valentin.cache\casualOnTheSpot\sessions |
You absolute legend! |
Hi guys, |
@fe-de-ri-co I made a short video and a step by step guide on github, you can check it out at the following link: |
Thanks guys. i finally figured out how to do it. Unfortunatlly it only works for premium accounts. i want to download something from spotify germany cause its not available here, but no luck. |
@walt536 You can do as I do, because I don't pay to have Spotify Premium, for me the real objective is to download music in good quality, I create disposable accounts, the premium lasts 1 month for each account, I do it like this: |
Hello, I tried several times to follow the instructions and I have a premium account. The problem is that the script is not spitting out the config file. The sessions folder is also empty, nevertheless I managed to connect my sportify account to libre spot. This is what I get in the terminal (on Windows)
|
My discord is: methorstgang1995 |
I live in the Netherlands so maybe different timezone |
did you put your username and password in? Is that why it's blacked out in your video? If that was part of the instructions I missed it. Does the password go in "a"? edit I missed the part where you have to run a python script and I think this is where I tap out. Too technical. |
I don't like filling this issue up with support inquiries, my discord account is @j075046 you can dm me and I will help you however I can. If you don't like discord let me know how to contact you. |
For linux users I've added an appimage to releases here. If there is demand I may look into building a macos dmg. No update for windows builds yet. |
Windows and macos builds with the new login scheme available here: Virus Scan (on exe): |
Windows 10 or 11, on windows 11 you will receive a popup to allow local network access. Attach logs |
win 10, got a firewall message - i hit allow access |
Its difficult to say whats wrong without logs, they should be located in C:\Users\USERNAME.cache |
2 logs - (tried twice) [2024-08-27 15:26:27,278 :: init :: init.py -> 11: main() :: INFO] -> Starting application in [2024-08-27 15:29:33,491 :: init :: init.py -> 11: main() :: INFO] -> Starting application in |
I just tried on my windows 10 pc and it worked first try, one possible issue is that I allowed network access for both spotify and onthespot so that they could communicate. Perhaps you blocked spotify in firewall when you first installed it? |
re spotify - def not - I can try on my win 11 box |
yah first time on my win 11 box - must have been something with the leftovers from the 0.5 install - not sure how to clear that out |
You can delete .cache and .config at C:\Users\USERNAME |
It works!!! Thank youuuuu!!!!!!!!!!!! 🥹 🥹 🥹 |
This happened to me when I added the user session. I solved the problem by cancelling all downloads, closing onthespot and spotify, reopening again and searching again for the playlist I wanted to add to downloads.... Quite random but it worked out |
If you'd like you could just copy your cache and config from your windows 11 box to windows 10. They should be os agnostic |
works on my win 10 laptop as well - I'll try that first |
you're a problem solving genius justin - that did the trick |
Fixed login bug for free accounts and other minor things in 0.6.1 https://github.com/justin025/onthespot/releases/latest |
after downloading and opening the 6.1 version and trying to add new account, I get a popup that says "Login service started... Select Onthespot under devices in Spotify desktop app". how do I do that? I downloaded the desktop app but can't find any 'devices' option. |
No need, just leave a star on the repo. For anyone else reading this, please post issues / support requests at the link below: |
can some one help me how to fix it in Mac? i download the OnTheSpot-x86_64.dmg v0.6.2 but it can't open, i only use the terminal to open onthespot before |
you can dm me on discord @j075046 or open an issue at the link i posted above |
I also get the login error with OnTheSpot (exe with bundled FFMPEG) as of today on Windows 11. Accounts worked fine before and work on Spotify, but onthespot gives a login error. Password matches new requirements, too.
I deleted both the onthespot folders in .cache and .config without success. Is there a new exe I can try? Many thanks!!
The text was updated successfully, but these errors were encountered: