xou816 / spot

Native Spotify client for the GNOME desktop
MIT License
2.3k stars 123 forks source link

Spotify API error: No token #511

Open oae opened 2 years ago

oae commented 2 years ago

After pausing and not listening for a while, if I want to resume playback I get the following error

[2022-04-18T15:04:29Z ERROR spot::app::batch_loader] Spotify API error: No token

General information:

oae commented 2 years ago

Another time, I got the following error.

~ 
➜  flatpak run --env=RUST_BACKTRACE=full dev.alextren.Spot

(process:2): Adwaita-CRITICAL **: 18:11:03.719: adw_leaflet_set_visible_child: assertion 'contains_child' failed
[2022-04-18T15:45:36Z ERROR librespot_core::session] Connection reset by peer (os error 104)
[2022-04-18T16:20:22Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:22Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:25Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:25Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:29Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:29Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:30Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:46Z ERROR librespot_playback::player] Player Commands Error: channel closed
[2022-04-18T16:20:47Z ERROR librespot_playback::player] Player Commands Error: channel closed
spotted-cat commented 2 years ago

After pausing and not listening for a while, if I want to resume playback I get the following error

[2022-04-18T15:04:29Z ERROR spot::app::batch_loader] Spotify API error: No token

General information:

* Distribution: Arch Linux

* Installation method: Flatpak

* Version: 0.3.3

* Device used: Desktop

@oae I am also getting the same error while trying to login with my spotify account on Spot, any fixes you found yet?

oae commented 2 years ago

I have to exit and start again to make it work correctly again

xou816 commented 2 years ago

Hi! Thanks for the report. I need to have a closer look, but we might be able to catch that error and create a fresh session in librespot, I think.