mirror of
https://github.com/casualsnek/onthespot.git
synced 2026-04-26 20:45:56 +03:00
[GH-ISSUE #148] Login Failed! Probably invalid username or password. [BUG] #111
Labels
No labels
Feedback requested
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/onthespot#111
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @omarigg04 on GitHub (Aug 14, 2024).
Original GitHub issue: https://github.com/casualsnek/onthespot/issues/148
I tryed to login with 3 different accounts using mail and username but I wasnt able to access.
@casualsnek This app looks amazing, could you help us to find a solution?
@myki-b commented on GitHub (Aug 15, 2024):
Same issue here. Attempted with different account types (both free and premium), with and without VPN. All the same - cannot authenticate.
@LeGenDaRy15PT commented on GitHub (Aug 15, 2024):
Most people have this problem, especially those who changed their password recently, this is due to a problem that Spotify left the librespot project and since then many people have started to have problems using third-party applications to log in.
I hope they fix this app because it's really good.
You can see more about this subject at this link:
https://github.com/librespot-org/librespot/issues/1308
@ValentinPintat commented on GitHub (Aug 15, 2024):
Same problem here on different windows laptops
@justin025 commented on GitHub (Aug 15, 2024):
Temporary fix here https://github.com/casualsnek/onthespot/issues/144#issuecomment-2292409458
@ValentinPintat commented on GitHub (Aug 16, 2024):
Hello,
Thank you for your answer
I tried to lunch the python code I had this error :
WARNING:root:Transfer playback from desktop client to librespot-python via Spotify Connect in order to store session WARNING:zeroconf:Error with socket 744 (('0.0.0.0', 5353))): [WinError 87] Paramètre incorrect Traceback (most recent call last): File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 577, in _loop_reading self._read_fut = self._loop._proactor.recvfrom(self._sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom self._register_with_iocp(conn) File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 709, in _register_with_iocp _overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0) OSError: [WinError 87] Paramètre incorrect WARNING:zeroconf:Error with socket 1036 (('127.0.0.1', 5353))): [WinError 87] Paramètre incorrect Traceback (most recent call last): File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 577, in _loop_reading self._read_fut = self._loop._proactor.recvfrom(self._sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom self._register_with_iocp(conn) File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 709, in _register_with_iocp _overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0) OSError: [WinError 87] Paramètre incorrect WARNING:zeroconf:Error with socket 1032 (('192.168.0.170', 5353))): [WinError 87] Paramètre incorrect Traceback (most recent call last): File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 577, in _loop_reading self._read_fut = self._loop._proactor.recvfrom(self._sock, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom self._register_with_iocp(conn) File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 709, in _register_with_iocp _overlapped.CreateIoCompletionPort(obj.fileno(), self._iocp, 0, 0) OSError: [WinError 87] Paramètre incorrect WARNING:root:Grabbed <librespot.core.Session object at 0x00000166663E0860> for valentinpintat WARNING:root:Session stored in credentials.json. Now you can Ctrl+C Exception in thread zeroconf-http-server: Traceback (most recent call last): File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1075, in _bootstrap_inner self.run() File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1012, in run self._target(*self._args, **self._kwargs) File "C:\Users\Valentin\Documents\GIT\librespot\.venv\Lib\site-packages\librespot\zeroconf.py", line 267, in run self.__worker.submit(anonymous) File "C:\Users\Valentin\AppData\Local\Programs\Python\Python312\Lib\concurrent\futures\thread.py", line 170, in submit raise RuntimeError('cannot schedule new futures after shutdown')I tried to continue the tuto, so i downloaded the app and connect to librespot
It did create a file credential.json but when I replace the file config.json by credential.json I have the same error no account listed.
I tried rename credential.json by config.json I have the same error no account listed.
@justin025 commented on GitHub (Aug 16, 2024):
Nooo dont replace your config with credentials. You need to replace .cache/onthespot/sessions/ots_login.json. I might make a video tonight demonstrating.
@ValentinPintat commented on GitHub (Aug 16, 2024):
Ok but config.json was the only file that I found in : C:\Users\Valentin.cache\casualOnTheSpot\sessions
There was no ots_login.json present in the folder sessions
@justin025 commented on GitHub (Aug 16, 2024):
can you tell me what is under accounts in C:\Users\Valentin\.config\onthespot\config.json. Remove your email address before pasting
@ValentinPintat commented on GitHub (Aug 16, 2024):
Sure :
{ "version": 0.5, "max_threads": 1, "parsing_acc_sn": 1, "download_root": "C:\\Users\\Valentin\\Music\\OnTheSpot", "download_delay": 5, "track_name_formatter": "{artist} - {album} - {name}", "album_name_formatter": "test\\", "playlist_name_formatter": "MyPlaylists\\{name} by {owner}", "playlist_track_force_album_dir": true, "watch_bg_for_spotify": false, "dl_end_padding_bytes": 167, "max_retries": 3, "max_search_results": 10, "media_format": "mp3", "podcast_media_format": "mp3", "force_raw": false, "force_premium": false, "chunk_size": 50000, "recoverable_fail_wait_delay": 10, "disable_bulk_dl_notices": true, "inp_enable_lyrics": false, "only_synced_lyrics": false, "create_m3u_playlists": false, "ffmpeg_args": [], "show_search_thumbnails": 1, "search_thumb_height": 60, "metadata_seperator": ";", "accounts": [], "_ffmpeg_bin_path": "C:\\Users\\Valentin\\AppData\\Local\\Temp\\_MEI123202\\onthespot\\bin\\ffmpeg\\ffmpeg.exe", "_log_file": "C:\\Users\\Valentin\\.cache\\casualOnTheSpot\\logs\\78b4ddeb-4548-4ec1-ad8e-43d9b6f45c13\\onthespot.log", "_cache_dir": "C:\\Users\\Valentin\\.cache\\casualOnTheSpot" }I noticed there is a line "accounts": [] but I don't know how to fill it with my account.
Maybe a link with credential.json ?
@justin025 commented on GitHub (Aug 16, 2024):
Grab the entire accounts section and replace it with "accounts": "EMAIL", true, 1, "a", finally move credentials to .cache/onthespot/sessions/ots_login_a.json. Your user will now login, hope this helps
@LeGenDaRy15PT commented on GitHub (Aug 16, 2024):
@justin025 I tested it on my Windows and it's giving me this error that @ValentinPintat is giving me
@ValentinPintat commented on GitHub (Aug 16, 2024):
I saw that on your other post, I tested it but same issue
@justin025 commented on GitHub (Aug 16, 2024):
@josefilipe13 Valentin's script created a credentials.json the error is a little different, i;m not sure whats casuing it at the moment, maybe a vpn, WARNING:zeroconf:Error with socket 1092 (('192.168.1.232', 5353))): [WinError 87] O parâmetro está incorreto seems to be a network error
@justin025 commented on GitHub (Aug 16, 2024):
@ValentinPintat Post new config.json
@ValentinPintat commented on GitHub (Aug 16, 2024):
@justin025
Here is the content of my ots_login_a.json
{"username": "v****t", "credentials": "QVFCUz****************************************yejhkc0E=", "type": "AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS"}And the content of my config.json
{ "version": 0.5, "max_threads": 1, "parsing_acc_sn": 1, "download_root": "C:\\Users\\Valentin\\Music\\OnTheSpot", "download_delay": 5, "track_name_formatter": "{artist} - {album} - {name}", "album_name_formatter": "test\\", "playlist_name_formatter": "MyPlaylists\\{name} by {owner}", "playlist_track_force_album_dir": true, "watch_bg_for_spotify": false, "dl_end_padding_bytes": 167, "max_retries": 3, "max_search_results": 10, "media_format": "mp3", "podcast_media_format": "mp3", "force_raw": false, "force_premium": false, "chunk_size": 50000, "recoverable_fail_wait_delay": 10, "disable_bulk_dl_notices": true, "inp_enable_lyrics": false, "only_synced_lyrics": false, "create_m3u_playlists": false, "ffmpeg_args": [], "show_search_thumbnails": 1, "search_thumb_height": 60, "metadata_seperator": ";", "accounts": [ [ "EMAIL", true, 1, "a" ] ], "_ffmpeg_bin_path": "C:\\Users\\Valentin\\AppData\\Local\\Temp\\_MEI123202\\onthespot\\bin\\ffmpeg\\ffmpeg.exe", "_log_file": "C:\\Users\\Valentin\\.cache\\casualOnTheSpot\\logs\\78b4ddeb-4548-4ec1-ad8e-43d9b6f45c13\\onthespot.log", "_cache_dir": "C:\\Users\\Valentin\\.cache\\casualOnTheSpot" }@justin025 commented on GitHub (Aug 16, 2024):
@ValentinPintat Did you replace EMAIL in config.json
@LeGenDaRy15PT commented on GitHub (Aug 16, 2024):
@justin025 I also didn't create credentials.json because of this error, and I don't have the VPN connected
@justin025 commented on GitHub (Aug 16, 2024):
@josefilipe13 I'm not really sure how to help you without giving me your username and password. If you try linux this may help, if you want I can provide steps to install in virtualbox.
@LeGenDaRy15PT commented on GitHub (Aug 16, 2024):
@justin025 If you could do me this favor I would appreciate it so I installed Linux on the VirtualBox
@justin025 commented on GitHub (Aug 16, 2024):
@josefilipe13 which distro did you install
@justin025 commented on GitHub (Aug 16, 2024):
@josefilipe13 Download from here https://linuxmint.com/edition.php?id=316 and run the iso in virtualbox, let me know when you're done
@justin025 commented on GitHub (Aug 16, 2024):
@josefilipe13 Depends on your country, how can i contact you other then github.
@ValentinPintat commented on GitHub (Aug 16, 2024):
@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
@LeGenDaRy15PT commented on GitHub (Aug 16, 2024):
@justin025 managed to solve this problem for me, it actually seems difficult but if you follow his steps well he can get it working again
What we did:
Create the script that @justin025 Script mentioned and copy and paste it into notepad and save test.py
Click twice to open test.py and then run spotify desktop --> connect to a device and there you should find librespot python, click on librespot python and it should create credentials.json on the desktop that you will have to move to
C:\Users\(USERNAME)\.cache\casualOnTheSpot\sessions\ots_login_a.jsonYou should change the name of credentials.json to ots_login_a.json
Once this is done in the
C:\Users\(USERNAME)\.config\casualOnTheSpot\config.jsonfolder, you must paste this code in the account partOnce this is done, just change the "EMAIL" to your email and enter onthespot, which should automatically enter your account.
If you want, you can copy and paste the entire code that I will create into a pastebin config.json

https://pastebin.com/HteD10vh
Video tutorial:
How to fix Spotify Login
PS: I'm not very good at video editing but this gives you an idea of how to do it.
Credits to @justin025
@AndiCee commented on GitHub (Aug 18, 2024):
@josefilipe13 thank you, I followed your video and it added my account and works. :)
@neel-cyber commented on GitHub (Aug 18, 2024):
hey im not able to see it in the spotify connect to a device
i aint much of a techie help me please
@neel-cyber commented on GitHub (Aug 18, 2024):
i cant connect to librespot python, it says i have to get premium to do that is it possible to make it work in any way ?
@LeGenDaRy15PT commented on GitHub (Aug 18, 2024):
@neel-cyber In fact I'm not sure if it works on non-premium accounts that I haven't tested yet, as the account I'm using is disposable and was the first one I created, if you want to use premium disposable accounts I posted how to do it at this link:
https://github.com/casualsnek/onthespot/issues/144#issuecomment-2295163595
Did you follow the step by step in the video?
@kafkauskas commented on GitHub (Aug 21, 2024):
I can't seem to be able to create the credentials.json file. Can anyone help?
@LeGenDaRy15PT commented on GitHub (Aug 22, 2024):
@kafkauskas Did you follow all these steps and were unable to create credentials.json?
https://github.com/casualsnek/onthespot/issues/148#issuecomment-2293903804
@EverydayHuman commented on GitHub (Aug 23, 2024):
@Jonathanm1995 commented on GitHub (Aug 25, 2024):
I did every steps
But on open onthespot the cmd open and close and won't load onthespot after doing the fix
@justin025 commented on GitHub (Aug 26, 2024):
Fixed login, see https://github.com/casualsnek/onthespot/issues/144#issuecomment-2309179102
@Jonathanm1995 commented on GitHub (Aug 26, 2024):
@justin025
When do you have time to fix that login?
Do I put my email between this: "EMAIL"
In the " " ?
@Jonathanm1995 commented on GitHub (Aug 26, 2024):
@justin025 solve the issue for me trough anydesk
Thanks alot
@justin025 commented on GitHub (Aug 27, 2024):
Windows and macos builds with the new login scheme available here:
https://github.com/justin025/onthespot/releases/tag/v0.6
Virus Scan (on exe):
https://www.virustotal.com/gui/file/bf6ccbe856f4a6ef82aaa8fadef0cec5bcfc8cc8c26da0da60a67762a341a11f
@MiauMiez commented on GitHub (Aug 30, 2024):
Hey guys, is there anything a normal person without much coding experience can do to get this working again?
I had problems downloading songs so I installed the newest version. Now I can't add any accounts. The tools is useless now :/
Have a great day!
@justin025 commented on GitHub (Aug 31, 2024):
Download v0.6 linked above and install the spotify desktop app. Click add account in onthespot. Next open devices in the spotify app and select onthespot. The app will restart and should be logged in.
If this process doesn't work for you please file an issue in my repo and I'll get back to you
@justin025 commented on GitHub (Sep 2, 2024):
Fixed login bug for free accounts and other minor things in 0.6.1 https://github.com/justin025/onthespot/releases/latest
@ficarra1002 commented on GitHub (Nov 3, 2024):
FYI this "fix" requires a premium subscription. Dont bother if you don't want to pay.
@justin025 commented on GitHub (Nov 8, 2024):
The fix breaks if you have multiple spotify apps open at the same time, when logging in you can only have the desktop app and onthespot. After login you can have as many instances as you'd like