Audio source selection Invidious error:type 'Null' is not a subtype of type 'String' in type cast
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
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)
[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)
[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)
[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)
[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)
[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)
[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)
[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)
[2025-02-05 23:28:58.773539]---------------------
No track currently
#0 SyncedLyricsNotifier.build (package:spotube/provider/spotify/lyrics/synced.dart:131)
[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)
[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)
[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)
[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.
[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)
Self grab
- [x] I'm ready to work on this issue!