Open omarigg04 opened 2 months ago
Same issue here. Attempted with different account types (both free and premium), with and without VPN. All the same - cannot authenticate.
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
Same problem here on different windows laptops
Temporary fix here https://github.com/casualsnek/onthespot/issues/144#issuecomment-2292409458
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.
Nooo dont replace your config with credentials. You need to replace .cache/onthespot/sessions/ots_login.json. I might make a video tonight demonstrating.
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
can you tell me what is under accounts in C:\Users\Valentin\.config\onthespot\config.json. Remove your email address before pasting
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 ?
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
@justin025 I tested it on my Windows and it's giving me this error that @ValentinPintat is giving me
>>> from librespot.zeroconf import ZeroconfServer
>>> import time
>>> import logging
>>> import pathlib
>>>
>>> zs = ZeroconfServer.Builder().create()
>>> logging.warning("Transfer playback from desktop client to librespot-python via Spotify Connect in order to store session")
WARNING:root:Transfer playback from desktop client to librespot-python via Spotify Connect in order to store session
>>>
>>> while True:
... time.sleep(1)
WARNING:zeroconf:Error with socket 1036 (('0.0.0.0', 5353))): [WinError 87] O parâmetro está incorreto
Traceback (most recent call last):
File "C:\Users\filip\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\filip\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom
self._register_with_iocp(conn)
File "C:\Users\filip\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] O parâmetro está incorreto
... if zs._ZeroconfServer__session:
WARNING:zeroconf:Error with socket 1084 (('127.0.0.1', 5353))): [WinError 87] O parâmetro está incorreto
Traceback (most recent call last):
File "C:\Users\filip\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\filip\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom
self._register_with_iocp(conn)
File "C:\Users\filip\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] O parâmetro está incorreto
... logging.warning(f"Grabbed {zs._ZeroconfServer__session} for {zs._ZeroconfServer__session.username()}")
WARNING:zeroconf:Error with socket 1088 (('172.25.160.1', 5353))): [WinError 87] O parâmetro está incorreto
Traceback (most recent call last):
File "C:\Users\filip\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\filip\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom
self._register_with_iocp(conn)
File "C:\Users\filip\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] O parâmetro está incorreto
...
... if pathlib.Path("credentials.json").exists():
WARNING:zeroconf:Error with socket 1092 (('192.168.1.232', 5353))): [WinError 87] O parâmetro está incorreto
Traceback (most recent call last):
File "C:\Users\filip\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\filip\AppData\Local\Programs\Python\Python312\Lib\asyncio\windows_events.py", line 509, in recvfrom
self._register_with_iocp(conn)
File "C:\Users\filip\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] O parâmetro está incorreto
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
I saw that on your other post, I tested it but same issue
@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
@ValentinPintat Post new config.json
@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" }
@ValentinPintat Did you replace EMAIL in config.json
@justin025 I also didn't create credentials.json because of this error, and I don't have the VPN connected
@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.
@justin025 If you could do me this favor I would appreciate it so I installed Linux on the VirtualBox
@josefilipe13 which distro did you install
@josefilipe13 Download from here https://linuxmint.com/edition.php?id=316 and run the iso in virtualbox, let me know when you're done
@josefilipe13 Depends on your country, how can i contact you other then github.
@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
@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.json
You should change the name of credentials.json to ots_login_a.json
Once this is done in the C:\Users\(USERNAME)\.config\casualOnTheSpot\config.json
folder, you must paste this code in the account part
"accounts": [
[
"EMAIL",
true,
1,
"a"
]]
}
Once 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
@josefilipe13 thank you, I followed your video and it added my account and works. :)
@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.json You should change the name of credentials.json to ots_login_a.json Once this is done in the C:\Users\filip.config\casualOnTheSpot\config.json folder, you must paste this code in the account part
"accounts": [ [ "EMAIL", true, 1, "a" ]] }
Once 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
hey im not able to see it in the spotify connect to a device i aint much of a techie help me please
@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.json You should change the name of credentials.json to ots_login_a.json Once this is done in the C:\Users\filip.config\casualOnTheSpot\config.json folder, you must paste this code in the account part
"accounts": [ [ "EMAIL", true, 1, "a" ]] }
Once 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
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 ?
@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?
I can't seem to be able to create the credentials.json file. Can anyone help?
@kafkauskas Did you follow all these steps and were unable to create credentials.json? https://github.com/casualsnek/onthespot/issues/148#issuecomment-2293903804
@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.json
You should change the name of credentials.json to ots_login_a.json Once this is done in theC:\Users\(USERNAME)\.config\casualOnTheSpot\config.json
folder, you must paste this code in the account part"accounts": [ [ "EMAIL", true, 1, "a" ]] }
Once 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 spotify requires that i have premium in order to connect to the device
I did every steps But on open onthespot the cmd open and close and won't load onthespot after doing the fix
@justin025 When do you have time to fix that login? Do I put my email between this: "EMAIL" In the " " ?
@justin025 solve the issue for me trough anydesk Thanks alot
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
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
Tested and works flawlessly on windows 11. big shout out to your efforts!!! Fyi cheers from Poland! 👌
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!
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
Fixed login bug for free accounts and other minor things in 0.6.1 https://github.com/justin025/onthespot/releases/latest
Fixed login bug for free accounts and other minor things in 0.6.1 https://github.com/justin025/onthespot/releases/latest
FYI this "fix" requires a premium subscription. Dont bother if you don't want to pay.
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?