spotube icon indicating copy to clipboard operation
spotube copied to clipboard

DioException [bad response] trying to browse

Open sergiocallegari opened this issue 2 months ago • 20 comments

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

  • [x] I have searched the existing issues

Current Behavior

Trying the 5.00 version. Hitting: DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.

Expected Behavior

The app should let me browse

Steps to reproduce

  1. Opened app
  2. Installed Listenbrainz plugin
  3. Registered to musicbrainz
  4. entered listenbrainz key
  5. tried to browse

Logs

Logs
DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code.
The status code of 400 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.

Operating System

Linux

Spotube version

5.0.0

Installation source

Flathub (Flatpak)

Additional information

No response

Self grab

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

sergiocallegari avatar Oct 03 '25 09:10 sergiocallegari

Same issue on Flatpak install on Debian 12:

DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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.

controlunit avatar Oct 05 '25 16:10 controlunit

This also happens to me, both on Linux (Flathub) and Android (F-Droid).

DVD-DAVIDE avatar Oct 06 '25 13:10 DVD-DAVIDE

Possibly related: https://github.com/sonic-liberation/spotube-plugin-spotify/issues/14

its-blue avatar Oct 06 '25 17:10 its-blue

same issue

moisestohias avatar Oct 07 '25 22:10 moisestohias

Same for me. Raised it in the wrong repo.

https://github.com/KRTirtho/spotube-plugin-musicbrainz-listenbrainz/issues/11

EDIT: Mine is not an error 400 but error 500 and sometimes an error without code (logs in referenced ticket)

Djtrip83 avatar Oct 09 '25 16:10 Djtrip83

Same on Windows 10 nightly and non-nightly.

Foxache avatar Oct 09 '25 19:10 Foxache

+1

Tried everything but no use. Cleared Cache, reinstalled, re-sycned with Spotify. No luck.

DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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.

viraj89 avatar Oct 10 '25 15:10 viraj89

+1

javiercuellar73 avatar Oct 10 '25 19:10 javiercuellar73

The spotify plugin has been updated to work. The MusicBrainz one is still broken as of writing

gursuj avatar Oct 11 '25 14:10 gursuj

Edit : It's working back again. Plugin for Spotify got an update to 0.1.4. and Voila it's working!

+1

Tried everything but no use. Cleared Cache, reinstalled, re-sycned with Spotify. No luck.

DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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.

viraj89 avatar Oct 11 '25 19:10 viraj89

Not for me, Spotify plugin is updated, not working

Stooovie avatar Oct 12 '25 15:10 Stooovie

using manjaro. also uninstalled, cleared configs as far as i know, not even sure where they all are saved. still just DioExceptions.

agolks avatar Oct 21 '25 14:10 agolks

It still doesn't work for me, even after the update: [2025-10-21 20:42:47.818687]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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:523) #1 ServerPlaybackRoutes.streamTrack (package:spotube/provider/server/routes/playback.dart:103) #2 ServerPlaybackRoutes.getStreamTrackId (package:spotube/provider/server/routes/playback.dart:234) #3 RouterEntry.invoke. (package:shelf_router/src/router_entry.dart:109) #4 RouterEntry.invoke (package:shelf_router/src/router_entry.dart:104) #5 Router.call (package:shelf_router/src/router.dart:184) #6 handleRequest (package:shelf/shelf_io.dart:140)


[2025-10-21 20:42:51.285546]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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:523) #1 ServerPlaybackRoutes.streamTrack (package:spotube/provider/server/routes/playback.dart:103) #2 ServerPlaybackRoutes.getStreamTrackId (package:spotube/provider/server/routes/playback.dart:234) #3 RouterEntry.invoke. (package:shelf_router/src/router_entry.dart:109) #4 RouterEntry.invoke (package:shelf_router/src/router_entry.dart:104) #5 Router.call (package:shelf_router/src/router.dart:184) #6 handleRequest (package:shelf/shelf_io.dart:140)

lion099 avatar Oct 21 '25 18:10 lion099

Happens to me too on Kubuntu and Android.

MetadataPluginSavedTracksNotifier.fetch (package:spotube/provider/metadata_plugin/library/tracks.dart:13) #6 MetadataPluginSavedTracksNotifier.build (package:spotube/provider/metadata_plugin/library/tracks.dart:26) #7 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-10-30 09:51:43.551796]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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:523) #1 HttpClient.request (package:hetu_std/http/http.dart:146) #2 HttpClient.get (package:hetu_std/http/http.dart:175) #3 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #4 FutureUtils.chain (package:hetu_std/future_utils/future_utils.binding.dart:29) #5 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #6 FutureUtils.chain (package:hetu_std/future_utils/future_utils.binding.dart:29) #7 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #8 MetadataPluginBrowseEndpoint.sections (package:spotube/services/metadata/endpoints/browse.dart:18) #9 MetadataPluginBrowseSectionsNotifier.fetch (package:spotube/provider/metadata_plugin/browse/sections.dart:14) #10 MetadataPluginBrowseSectionsNotifier.build (package:spotube/provider/metadata_plugin/browse/sections.dart:23) #11 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-10-30 09:51:43.854677]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:51:46.454069]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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:523) #1 ServerPlaybackRoutes.streamTrack (package:spotube/provider/server/routes/playback.dart:103) #2 ServerPlaybackRoutes.getStreamTrackId (package:spotube/provider/server/routes/playback.dart:234) #3 RouterEntry.invoke. (package:shelf_router/src/router_entry.dart:109) #4 RouterEntry.invoke (package:shelf_router/src/router_entry.dart:104) #5 Router.call (package:shelf_router/src/router.dart:184) #6 handleRequest (package:shelf/shelf_io.dart:140)


[2025-10-30 09:51:51.013138]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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:523) #1 ServerPlaybackRoutes.streamTrack (package:spotube/provider/server/routes/playback.dart:103) #2 ServerPlaybackRoutes.getStreamTrackId (package:spotube/provider/server/routes/playback.dart:234) #3 RouterEntry.invoke. (package:shelf_router/src/router_entry.dart:109) #4 RouterEntry.invoke (package:shelf_router/src/router_entry.dart:104) #5 Router.call (package:shelf_router/src/router.dart:184) #6 handleRequest (package:shelf/shelf_io.dart:140)


[2025-10-30 09:51:53.247190]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:51:54.218455]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 403 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 403 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:523) #1 ServerPlaybackRoutes.streamTrack (package:spotube/provider/server/routes/playback.dart:103) #2 ServerPlaybackRoutes.getStreamTrackId (package:spotube/provider/server/routes/playback.dart:234) #3 RouterEntry.invoke. (package:shelf_router/src/router_entry.dart:109) #4 RouterEntry.invoke (package:shelf_router/src/router_entry.dart:104) #5 Router.call (package:shelf_router/src/router.dart:184) #6 handleRequest (package:shelf/shelf_io.dart:140)


[2025-10-30 09:51:54.219025]--------------------- Failed to open http://0.0.0.0:8224/stream/f313d7cf-0be0-494d-85a7-4ecf1696d28c?id=f313d7cf-0be0-494d-85a7-4ecf1696d28c&title=Nos%20vies%20en%20Lumi%C3%A8re&artists=Lorien%20Testard%2CAlice%20Duport-Percier%2CVictor%20Borba%2CAxelle%20Verner&album=Clair%20Obscur%3A%20Expedition%2033%20-%20Nos%20vies%20en%20Lumi%C3%A8re%20(Original%20Soundtrack)%20%5BBonus%20Edition%5D&durationMs=1980000&isrc=NL8RL2535259&explicit=false. #0 new AudioPlayerInterface. (package:spotube/services/audio_player/audio_player.dart:62) #1 _rootRunUnary (dart:async/zone.dart:1538) #2 _CustomZone.runUnary (dart:async/zone.dart:1429) #3 _CustomZone.runUnaryGuarded (dart:async/zone.dart:1329) #4 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:381) #5 _DelayedData.perform (dart:async/stream_impl.dart:573) #6 _PendingEvents.handleNext (dart:async/stream_impl.dart:678) #7 _PendingEvents.schedule. (dart:async/stream_impl.dart:649) #8 _rootRun (dart:async/zone.dart:1517) #9 _CustomZone.run (dart:async/zone.dart:1422) #10 _CustomZone.runGuarded (dart:async/zone.dart:1321) #11 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1362) #12 _rootRun (dart:async/zone.dart:1525) #13 _CustomZone.run (dart:async/zone.dart:1422) #14 _CustomZone.runGuarded (dart:async/zone.dart:1321) #15 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1362) #16 _microtaskLoop (dart:async/schedule_microtask.dart:40) #17 _startMicrotaskLoop (dart:async/schedule_microtask.dart:49)



[2025-10-30 09:56:38.526886]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:40.390553]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:42.726980]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:42.727030]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:45.111970]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:51.957230]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:56:51.957406]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:57:02.134358]--------------------- DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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:523) #1 HttpClient.request (package:hetu_std/http/http.dart:146) #2 HttpClient.get (package:hetu_std/http/http.dart:175) #3 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #4 FutureUtils.chain (package:hetu_std/future_utils/future_utils.binding.dart:29) #5 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #6 FutureUtils.chain (package:hetu_std/future_utils/future_utils.binding.dart:29) #7 StreamBinding.hFetch.. (package:hetu_std/stream/stream.binding.dart:84) #8 MetadataPluginBrowseEndpoint.sections (package:spotube/services/metadata/endpoints/browse.dart:18) #9 MetadataPluginBrowseSectionsNotifier.fetch (package:spotube/provider/metadata_plugin/browse/sections.dart:14) #10 MetadataPluginBrowseSectionsNotifier.build (package:spotube/provider/metadata_plugin/browse/sections.dart:23) #11 FutureHandlerProviderElementMixin.handleFuture.. (package:riverpod/src/async_notifier/base.dart:355)


[2025-10-30 09:57:40.401427]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:57:48.028019]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)


[2025-10-30 09:57:49.914831]--------------------- PathNotFoundException: Cannot open file, path = '/home/jorge/.var/app/com.github.KRTirtho.Spotube/config/dconf/user' (OS Error: No existe el fichero o el directorio, errno = 2) #0 _checkForErrorResponse (dart:io/common.dart:58) #1 _File.open. (dart:io/file_impl.dart:442) #2 _rootRunUnary (dart:async/zone.dart:1538) #3 _CustomZone.runUnary (dart:async/zone.dart:1429) #4 _File.readAsBytes. (dart:io/file_impl.dart:649) #5 GVariantDatabase._loadRootTable (package:gsettings/src/gvariant_database.dart:30) #6 GVariantDatabase.lookup (package:gsettings/src/gvariant_database.dart:20) #7 DConfClient.read (package:gsettings/src/dconf_client.dart:82) #8 GSettingsDConfBackend.get (package:gsettings/src/gsettings_dconf_backend.dart:23) #9 GSettings.get (package:gsettings/src/gsettings.dart:124) #10 getTheme (package:titlebar_buttons/src/get_theme.dart:12) #11 _RawDecoratedTitlebarButtonState.initState. (package:titlebar_buttons/src/decorated_button.dart:156)

MrArdillo avatar Oct 30 '25 08:10 MrArdillo

I have he same problem;

DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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.

When trying to Browse.


Not only that but no songs play.

Spotify Plugin doesn't play songs either.

Configured Musicbrainz with last.fm and soundcloud. The rest is as it was with the old spotube.

Using MacOS Downloaded today the latest version from the website. I don't know the version number.

Any-1ne avatar Nov 11 '25 08:11 Any-1ne

Same happens for me, and I don't even have Spotify plugin installed, just official YouTube and musicbrainz DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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.

Image

Javi3rV avatar Nov 16 '25 12:11 Javi3rV

Same error with the pre-installed plugins, I tried flatpak & arch package

Taffroi avatar Nov 17 '25 17:11 Taffroi

today there was an update to the spotify plugin. isntall failed with some reasons, so i just cleanly removed whole spotify, including some local folders like

  • .local/share/oss.krtirtho.spotube
  • .cache/oss.krtirtho.spotube
  • .local/state/spotube

even cleared the local arch cache.

and then re-installed spotube including latest version of the plugin. for me it works now!

agolks avatar Nov 18 '25 08:11 agolks

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.

martinoc000 avatar Nov 20 '25 17:11 martinoc000

I have the same problem. I think it started right after I connected last.fm and listenbrainz in Spotube.

The error appears in Browse.

Error: DioException [bad response]: This exception was thrown because the response has a status code of 400 and RequestOptions.validateStatus was configured to throw for this status code. The status code of 400 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.

Shyryp avatar Nov 21 '25 03:11 Shyryp