spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Can't connect my spotify account to Spotube

Open eggkiller1101 opened this issue 11 months ago • 11 comments

Is there an existing issue for this? (Please read the description)

  • [x] I have searched the existing issues

Current Behavior

I can't connect spotify account to spotube.

Expected Behavior

connect spotify account successfully and use spotube normally

Steps to reproduce

  1. open the app
  2. try to connect my spotify account to the spotube
  3. log in spotify account successfully
  4. displays a page shows 'account preview', 'web player' and a 'log out' button
  5. click web player, and it shows an alert said 'error authentication failure'
Image

Logs

uspension> #12 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-02 18:53:11.921459]--------------------- FormatException: Unexpected character (at character 1) Too many requests ^

#0 _ChunkedJsonParser.fail (dart:convert-patch/convert_patch.dart:1465) #1 _ChunkedJsonParser.parseNumber (dart:convert-patch/convert_patch.dart:1332) #2 _ChunkedJsonParser.parse (dart:convert-patch/convert_patch.dart:933) #3 _parseJson (dart:convert-patch/convert_patch.dart:36) #4 JsonDecoder.convert (dart:convert/json.dart:610) #5 JsonCodec.decode (dart:convert/json.dart:216) #6 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:276) #7 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256) #8 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210) #9 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253) #10 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)


[2025-02-02 18:53:14.202603]--------------------- No track currently #0 SyncedLyricsNotifier.build (package:spotube/provider/spotify/lyrics/synced.dart:131) #1 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-02 18:53:15.475060]--------------------- Error Code: 401 Valid user authentication required #0 SpotifyApiBase.handleResponseWithBody (package:spotify/src/spotify_base.dart:282) #1 SpotifyApiBase._requestWrapper (package:spotify/src/spotify_base.dart:256) #2 SpotifyApiBase._getImpl (package:spotify/src/spotify_base.dart:210) #3 Pages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:253) #4 FavoritePlaylistsNotifier.fetch (package:spotube/provider/spotify/playlist/favorite.dart:33) #5 FavoritePlaylistsNotifier.build (package:spotube/provider/spotify/playlist/favorite.dart:44) #6 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-02 18:54:33.821778]--------------------- DioException [connection timeout]: The request connection took longer than 0:00:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:00.000000 or improve the response time of the server. Error: SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 58273 #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) #1 AuthenticationNotifier.credentialsFromCookie (package:spotube/provider/authentication/authentication.dart:111) #2 AuthenticationNotifier.login (package:spotube/provider/authentication/authentication.dart:96) #3 WebViewLogin.build. (package:spotube/pages/mobile_login/mobile_login.dart:61)


[2025-02-02 18:54:50.315062]--------------------- DioException [connection timeout]: The request connection took longer than 0:00:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:00.000000 or improve the response time of the server. Error: SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 58338 #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) #1 AuthenticationNotifier.credentialsFromCookie (package:spotube/provider/authentication/authentication.dart:111) #2 AuthenticationNotifier.login (package:spotube/provider/authentication/authentication.dart:96) #3 WebViewLogin.build. (package:spotube/pages/mobile_login/mobile_login.dart:61)


[2025-02-02 18:55:29.847006]--------------------- DioException [connection timeout]: The request connection took longer than 0:00:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:00.000000 or improve the response time of the server. Error: SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 58405 #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) #1 AuthenticationNotifier.credentialsFromCookie (package:spotube/provider/authentication/authentication.dart:111) #2 AuthenticationNotifier.login (package:spotube/provider/authentication/authentication.dart:96) #3 WebViewLogin.build. (package:spotube/pages/mobile_login/mobile_login.dart:61)


[2025-02-02 18:55:47.360383]--------------------- DioException [connection timeout]: The request connection took longer than 0:00:00.000000 and it was aborted. To get rid of this exception, try raising the RequestOptions.connectTimeout above the duration of 0:00:00.000000 or improve the response time of the server. Error: SocketException: Operation timed out (OS Error: Operation timed out, errno = 60), address = open.spotify.com, port = 58411 #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) #1 AuthenticationNotifier.credentialsFromCookie (package:spotube/provider/authentication/authentication.dart:111) #2 AuthenticationNotifier.login (package:spotube/provider/authentication/authentication.dart:96) #3 WebViewLogin.build. (package:spotube/pages/mobile_login/mobile_login.dart:61)


Operating System

macOS Sonoma 14.5

Spotube version

v 3.9.0 (38)

Installation source

Website (spotube.krtirtho.dev)

Additional information

No response

Self grab

  • [ ] I'm ready to work on this issue!

eggkiller1101 avatar Feb 02 '25 11:02 eggkiller1101

me too

lackar avatar Feb 02 '25 13:02 lackar

me too

imnxg avatar Feb 04 '25 10:02 imnxg

me too

SaintKnoe avatar Feb 05 '25 06:02 SaintKnoe

me too

lyshengli avatar Feb 07 '25 07:02 lyshengli

me too

Nat30 avatar Feb 07 '25 13:02 Nat30

me too and my platform is windows 11

tuzaishanlewob avatar Feb 09 '25 08:02 tuzaishanlewob

me too

maddingithub avatar Feb 09 '25 15:02 maddingithub

me too

Cookdao avatar Feb 12 '25 09:02 Cookdao

me too

eyerthin avatar Feb 18 '25 03:02 eyerthin

hello, any update from developers?

eggkiller1101 avatar Feb 25 '25 02:02 eggkiller1101

me too

DestroyLee avatar Apr 19 '25 07:04 DestroyLee