spotube icon indicating copy to clipboard operation
spotube copied to clipboard

Audio source selection Invidious error:type 'Null' is not a subtype of type 'String' in type cast

Open vcdog opened this issue 10 months ago • 0 comments

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

  • [x] I have searched the existing issues

Current Behavior

Audio source selection Invidious error:type 'Null' is not a subtype of type 'String' in type cast

Expected Behavior

Image

Steps to reproduce

No response

Logs

Logs
<Replace this line by pasting your logs here>

Operating System

Macos 13.7.2

Spotube version

v3.9.0

Installation source

GitHub Releases (Binary)

Additional information

ramework.dart:5333) #18 BuildScope._tryRebuild (package:flutter/src/widgets/framework.dart:2693) #19 BuildScope._flushDirtyElements (package:flutter/src/widgets/framework.dart:2752) #20 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3048) #21 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:1162) #22 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:468) #23 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1397) #24 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1318) #25 SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:1176) #26 _rootRun (dart:async/zone.dart:1399) #27 _CustomZone.run (dart:async/zone.dart:1301) #28 _CustomZone.runGuarded (dart:async/zone.dart:1209) #29 _invoke (dart:ui/hooks.dart:314) #30 PlatformDispatcher._drawFrame (dart:ui/platform_dispatcher.dart:419) #31 _drawFrame (dart:ui/hooks.dart:283)


[2025-02-05 23:27:24.623425]--------------------- 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-02-05 23:27:25.078208]--------------------- Error Code: 404 Not Found #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 FeaturedPlaylistsNotifier.fetch (package:spotube/provider/spotify/playlist/featured.dart:33) #5 FeaturedPlaylistsNotifier.build (package:spotube/provider/spotify/playlist/featured.dart:44) #6 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:27:25.101145]--------------------- 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 CursorPages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:292) #4 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)


[2025-02-05 23:27:25.112932]--------------------- 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 CursorPages.getPage (package:spotify/src/endpoints/endpoint_paging.dart:292) #4 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)


[2025-02-05 23:27:25.125188]--------------------- 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 Me.get (package:spotify/src/endpoints/me.dart:22) #4 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:27:43.985881]--------------------- DioException [connection error]: The connection errored: Connection refused This indicates an error which most likely cannot be solved by the library. Error: SocketException: Connection refused (OS Error: Connection refused, errno = 61), address = raw.githubusercontent.com, port = 63212 #0 DioMixin.fetch (package:dio/src/dio_mixin.dart:520) #1 PipedClient.instanceList (package:piped_client/src/client.dart:54) #2 pipedInstancesFutureProvider. (package:spotube/provider/audio_player/sources/piped_instances_provider.dart:11) #3 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:28:15.895358]--------------------- DioException [connection error]: The connection errored: Connection reset by peer This indicates an error which most likely cannot be solved by the library. Error: SocketException: Connection reset by peer (OS Error: Connection reset by peer, errno = 54), address = open.spotify.com, port = 63241 #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-05 23:28:54.372383]--------------------- 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-05 23:28:58.773539]--------------------- 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-05 23:29:17.921010]--------------------- Error Code: 400 Invalid base62 id #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 AlbumTracksNotifier.fetch (package:spotube/provider/spotify/album/tracks.dart:33) #5 AlbumTracksNotifier.build (package:spotube/provider/spotify/album/tracks.dart:48) #6 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:29:17.948532]--------------------- 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 FavoriteAlbumNotifier.fetch. (package:spotube/provider/spotify/album/favorite.dart:29) #5 FavoriteAlbumNotifier.build (package:spotube/provider/spotify/album/favorite.dart:35) #6 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:29:17.971980]--------------------- 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 SinglePages.stream.handlePageAndGetNext (package:spotify/src/endpoints/endpoint_paging.dart:187)


[2025-02-05 23:29:34.342315]--------------------- type 'Null' is not a subtype of type 'String' in type cast #0 _$$InvidiousMonitorImplFromJson (package:invidious/src/models/model.g.dart:493) #1 new _$InvidiousMonitorImpl.fromJson (package:invidious/src/models/model.freezed.dart:5728) #2 _$InvidiousMonitorFromJson (package:invidious/src/models/model.freezed.dart:5309) #3 new InvidiousMonitor.fromJson (package:invidious/src/models/responses/instance.dart:128) #4 _$$InvidiousInstanceDetailsImplFromJson (package:invidious/src/models/model.g.dart:361) #5 new _$InvidiousInstanceDetailsImpl.fromJson (package:invidious/src/models/model.freezed.dart:4092) #6 _$InvidiousInstanceDetailsFromJson (package:invidious/src/models/model.freezed.dart:3858) #7 new InvidiousInstanceDetails.fromJson (package:invidious/src/models/responses/instance.dart:28) #8 _$$InvidiousInstanceResponseImplFromJson (package:invidious/src/models/model.g.dart:336) #9 new _$InvidiousInstanceResponseImpl.fromJson (package:invidious/src/models/model.freezed.dart:3792) #10 _$InvidiousInstanceResponseFromJson (package:invidious/src/models/model.freezed.dart:3668) #11 new InvidiousInstanceResponse.fromJson (package:invidious/src/models/responses/instance.dart:11) #12 InstancesEndpoint.instances. (package:invidious/src/endpoints/instances.dart:13) #13 MappedIterable.elementAt (dart:_internal/iterable.dart:385) #14 ListIterator.moveNext (dart:_internal/iterable.dart:354) #15 new _GrowableList._ofEfficientLengthIterable (dart:core-patch/growable_array.dart:189) #16 new _GrowableList.of (dart:core-patch/growable_array.dart:150) #17 new List.of (dart:core-patch/array_patch.dart:39) #18 ListIterable.toList (dart:_internal/iterable.dart:224) #19 InstancesEndpoint.instances (package:invidious/src/endpoints/instances.dart:17) #20 invidiousInstancesProvider. (package:spotube/provider/audio_player/sources/invidious_instances_provider.dart:7) #21 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-02-05 23:29:53.751707]--------------------- 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 = 63256 #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)


Self grab

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

vcdog avatar Feb 05 '25 15:02 vcdog