Authentication error 400
Is there an existing issue for this? (Please read the description)
- [x] I have searched the existing issues
Current Behavior
I'm experiencing an Authentication error 400 when I start up Spotube. Everything seems to be working properly, except the bulk downloading of Spotify Playlists. And because this is the main reason for me to use Spotube to begin with, I find it a rather annoying one ;)
I run 4.0.0 on Win10
Is this a known issue?
Expected Behavior
The app running without this error and the playlist download option in working order
Steps to reproduce
The error shows on start up
Logs
[2025-03-14 12:17:44.015229]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 401 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 401 has the following meaning: "Client error - the request contains bad syntax or cannot be fulfilled" Read more about status codes at https://developer.mozilla.org/en-US/docs/Web/HTTP/Status In order to resolve this exception you typically have either to verify and fix your request code or you have to fix the server code.
#0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520)
[2025-03-14 12:17:44.430059]--------------------- FormatException: Invalid number (at character 1)
^
#0 int._handleFormatError (dart:core-patch/integers_patch.dart:135) #1 int.parse (dart:core-patch/integers_patch.dart:53) #2 ServiceUtils.checkForUpdates (package:spotube/utils/service_utils.dart:353)
Operating System
Windows 10
Spotube version
v4.0.0
Installation source
Website (spotube.krtirtho.dev), GitHub Releases (Binary)
Additional information
No response
Self grab
- [ ] I'm ready to work on this issue!
Can confirm, same error 400 every start since 4.0.0 on Windows 10.
Same on macOS here
Same for me on android since this morning Everything was working just right last night but then everything stopped I've tried changing the server but it continuous to happend.
Can also confirm
I am on Windows 11
Same problem with Android
Yes, it fails to get the access token. Error: 400. Since 4.0.0 on Windows 11 x86-64.
Same with android and login off and in again doesn't fix it.
Same on Android
Same here on Arch Linux
Same on Android
yes i can confirm too , in android and window 10 and 11
same on arch linux x2
Same on android i need this fixed immediately
Nothing loads except the regular liked playlist and not even the profile
Actually nothing works at all, completely broken
Just tested trying to re-log, I can no longer log in whatsoever
The Spotify login works in Spotify but in spotube it gives the error 400
I hope its just spotube and not spoti related. My friend used unofficial app and spoti deleted all of his playlists and other data...
I hope its just spotube and not spoti related. My friend used unofficial app and spoti deleted all of his playlists and other data...
I just checked by redownloading Spotify and logging in, all my information is here with no sign of any tweaks, flags, or deletions. It's unlikely Spotify would do something like that for spotube specifically because spotube doesn't use Spotify requests to get songs but rather uses YouTube and just uses your playlist data to generate playlists and recommendations from Spotify instead, which isn't against their terms
I can't login anymore >:(
How to fix this
Same sh!t for me on win 11 and android version.
Just tested trying to re-log, I can no longer log in whatsoever
Same for me, you're not alone
The same thing is happening here. It seems to only happen when Spotify asks for the username and password instead of a code for some reason.
Please everybody refrain from writing "me too" or "same", instead provide information about your system, version, and the exact error message!
If you just want to state that you have the same problem, use the emojis like "thumbs up" on the first post. This will show the maintainers how urgent an issue is.
And please search if there are open issues regarding your problem instead of creating a new one!
Now to the issue at hand, this gets a lot of traction, i scrolled through the last 10 pages of issues and will link all authentication issues. @KRTirtho seems to be aware of this problem, as it was mentioned often enough.
Maybe spotify API changes are the culprit. Since its also happening with 3.9.0 and 3.8.3 of spotube. Could be this: https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api
Possible duplicates:
- #2459
- #2433
- #2431
- #2428
- #2425
- #2379
- #2350
- #2332
- #2298
- #2253
- #2213
- #2214
- #2203
- #2187
- #2178
- #2165
- #2164
- #2125
- #2049
Please everybody refrain from writing "me too" or "same", instead provide information about your system, version, and the exact error message!
If you just want to state that you have the same problem, use the emojis like "thumbs up" on the first post. This will show the maintainers how urgent an issue is.
And please search if there are open issues regarding your problem instead of creating a new one!
Now to the issue at hand, this gets a lot of traction, i scrolled through the last 10 pages of issues and will link all authentication issues. @KRTirtho seems to be aware of this problem, as it was mentioned often enough.
Maybe spotify API changes are the culprit.
Possible duplicates:
- #2459
- #2433
- #2431
- #2428
- #2425
- #2379
- #2350
- #2332
- #2298
- #2253
- #2213
- #2214
- #2203
- #2187
- #2178
- #2165
- #2164
- #2125
- #2049
That's what about more than half of us did, so I'm not sure what you're trying to get at.
EDIT: Please STOP moderating issues you have no permission to moderate. You seem to be very technically unaware, and are beginning to mark issues as "duplicate" which have no relation to this current issue at all by basing their "duplicate nature" just off of a few similar words.
not sure it thats related, but maybe spotify did change the login routines, so spotube can't do the current login? when doing a logout and trying to login isugin spotify i get this instead of working login:
@AlexDev404 encourage everybody to be as constructive as possible to get a solution as fast as possible. That means providing valuable information and using the tools correctly.
My post also should show, that there have been issues in the same direction for quite a while, so to get some order into it, i did the research. Whats the point of 20+ authentication issues?
Not everybody might know how to work with GitHub, so thats why i put the info out there. My post is about more than just using the reactions.
Does this help you? Not sure why you seem to feel attacked or would put a thumbs down on my message, but OK for me. No need for further side-discussion IMHO.
The same thing is happening here. It seems to only happen when Spotify asks for the username and password instead of a code for some reason.
nope, for me its also happening with the code and like @gollex im then presented with that screen but spotube cant seem to fetch the login information correcly.
@AlexDev404 encourage everybody to be as constructive as possible to get a solution as fast as possible. That means providing valuable information and using the tools correctly.
My post also should show, that there have been issues in the same direction for quite a while, so to get some order into it, i did the research. Whats the point of 20+ authentication issues?
Not everybody might know how to work with GitHub, so thats why i put the info out there. My post is about more than just using the reactions.
Does this help you? Not sure why you seem to feel attacked or would put a thumbs down on my message, but OK for me. No need for further side-discussion IMHO.
I am encouraging, and it was good that you linked the issues, but then going ahead and marking other authentication issues as duplicate even if they have no relation is uncalled for.
Now it would be another story if on the other hand you actually knew what you were doing and that the issues were in fact duplicates. But that isn't that case here.
Second of all, you suddenly barging in telling us to be quiet with a wall of text while we were doing the exact same things you told us to be quiet about is also very unnecessary IMO.
A handshake error is entirely different from an HTTP status code. A handshake error is the client completely unable to even establish a connection with the server versus a status code that just signals that there was an error on the server-side while connected.