DioException [bad response] trying to browse
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
- Opened app
- Installed Listenbrainz plugin
- Registered to musicbrainz
- entered listenbrainz key
- 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!
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.
This also happens to me, both on Linux (Flathub) and Android (F-Droid).
Possibly related: https://github.com/sonic-liberation/spotube-plugin-spotify/issues/14
same issue
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)
Same on Windows 10 nightly and non-nightly.
+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.
+1
The spotify plugin has been updated to work. The MusicBrainz one is still broken as of writing
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.
Not for me, Spotify plugin is updated, not working
using manjaro. also uninstalled, cleared configs as far as i know, not even sure where they all are saved. still just DioExceptions.
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)
[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)
Happens to me too on Kubuntu and Android.
MetadataPluginSavedTracksNotifier.fetch (package:spotube/provider/metadata_plugin/library/tracks.dart:13)
[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)
[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.
[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)
[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)
[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.
[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)
[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.
[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.
[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.
[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.
[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.
[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.
[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.
[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.
[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)
[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.
[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.
[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.
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.
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.
Same error with the pre-installed plugins, I tried flatpak & arch package
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!
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.
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.