spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Authentication error 400

Open Patrick010 opened this issue 1 year ago • 59 comments

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?

Image

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) #1 CustomSpotifyEndpoints.getFriendActivity (package:spotube/services/custom_spotify_endpoints/spotify_endpoints.dart:113) #2 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[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!

Patrick010 avatar Mar 14 '25 11:03 Patrick010

Can confirm, same error 400 every start since 4.0.0 on Windows 10.

Schoggiweggli avatar Mar 14 '25 11:03 Schoggiweggli

Same on macOS here

binaryben avatar Mar 14 '25 12:03 binaryben

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.

KimDianis avatar Mar 14 '25 12:03 KimDianis

Can also confirm

I am on Windows 11

JohnSoellnerDev avatar Mar 14 '25 12:03 JohnSoellnerDev

Same problem with Android

MIRAM69 avatar Mar 14 '25 13:03 MIRAM69

Yes, it fails to get the access token. Error: 400. Since 4.0.0 on Windows 11 x86-64.

Arun0A avatar Mar 14 '25 13:03 Arun0A

Same with android and login off and in again doesn't fix it.

Strykerflash avatar Mar 14 '25 13:03 Strykerflash

Same on Android

shadyx49 avatar Mar 14 '25 13:03 shadyx49

Same here on Arch Linux

bloomdevelop avatar Mar 14 '25 13:03 bloomdevelop

Same on Android

goiabae avatar Mar 14 '25 13:03 goiabae

yes i can confirm too , in android and window 10 and 11

roycordero avatar Mar 14 '25 14:03 roycordero

same on arch linux x2

m4rc0s4p4r1c10 avatar Mar 14 '25 14:03 m4rc0s4p4r1c10

Same on android i need this fixed immediately

777Vincent avatar Mar 14 '25 14:03 777Vincent

Nothing loads except the regular liked playlist and not even the profile

777Vincent avatar Mar 14 '25 14:03 777Vincent

Actually nothing works at all, completely broken

777Vincent avatar Mar 14 '25 14:03 777Vincent

Just tested trying to re-log, I can no longer log in whatsoever

777Vincent avatar Mar 14 '25 14:03 777Vincent

The Spotify login works in Spotify but in spotube it gives the error 400

777Vincent avatar Mar 14 '25 14:03 777Vincent

I hope its just spotube and not spoti related. My friend used unofficial app and spoti deleted all of his playlists and other data...

DRYN07 avatar Mar 14 '25 14:03 DRYN07

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

777Vincent avatar Mar 14 '25 14:03 777Vincent

I can't login anymore >:(

Bluqui avatar Mar 14 '25 14:03 Bluqui

How to fix this

yellowduck134 avatar Mar 14 '25 14:03 yellowduck134

Same sh!t for me on win 11 and android version.

BezShkvark0 avatar Mar 14 '25 14:03 BezShkvark0

Just tested trying to re-log, I can no longer log in whatsoever

Same for me, you're not alone

BezShkvark0 avatar Mar 14 '25 14:03 BezShkvark0

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.

AlexDev404 avatar Mar 14 '25 14:03 AlexDev404

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

x29a avatar Mar 14 '25 15:03 x29a

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.

AlexDev404 avatar Mar 14 '25 15:03 AlexDev404

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:

Image

gollex avatar Mar 14 '25 15:03 gollex

@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.

x29a avatar Mar 14 '25 15:03 x29a

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.

x29a avatar Mar 14 '25 15:03 x29a

@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.

AlexDev404 avatar Mar 14 '25 15:03 AlexDev404