librespot-org / librespot

Open Source Spotify client library
MIT License
4.46k stars 540 forks source link

Home screen empty #1260

Closed cayco closed 4 months ago

cayco commented 4 months ago

Describe the bug I had working Spotty instalation on my LMS however a fefw days ago my Spotify Home screen became empty CleanShot 2024-03-06 at 09 09 21@2x

There is 404 error while trying to grab https://api.spotify.com/v1/views/desktop-home?content_limit=20&country=PL&limit=20&locale=pl_PL&timestamp=2024-03-06T07%3A00%3A00&types=album%2Cplaylist%2Cartist%2Cshow%2Cstation however I think it eventually is able to read smth from the cache. I can't make much from logs so I' also attaching full file, with enable DEBUG at the end of a session (token and username were edited by hand later).

I can reproduce that on a fresh LMS installation, just by login to my account. All other pllaylists work OK. Original app works OK.

To reproduce Steps to reproduce the behavior:

  1. Fresh install LMS, add Spotty plugin, login to Spotify account
  2. Open Spotty app on LMS
  3. Click Home
  4. See error

Log


[24-03-06 07:06:53.5065] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to 
[24-03-06 07:06:53.5069] Plugins::Spotty::API::Web::__ANON__ (268) Web API call: https://api.spotify.com/v1/views/desktop-home?content_limit=20&country=PL&limit=20&locale=pl_PL&timestamp=2024-03-06T07%3A00%3A00&types=album%2Cplaylist%2Cartist%2Cshow%2Cstation
[24-03-06 07:06:53.6193] Plugins::Spotty::API::Web::__ANON__ (255) error: 404 Not Found
[24-03-06 07:06:53.6194] Plugins::Spotty::API::Web::__ANON__ (257) undef
[24-03-06 07:06:53.6201] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:06:53.6224] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:06:53.6226] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:06:53.6249] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:07:20.0983] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to 
[24-03-06 07:07:20.0985] Plugins::Spotty::Connect::DaemonManager::initHelpers (92) Checking Spotty Connect helper daemons...
[24-03-06 07:07:20.0986] Plugins::Spotty::Connect::DaemonManager::initHelpers (126) This is a standalone player with Spotify Connect disabled: aa:aa:87:73:96:1c
[24-03-06 07:07:20.0988] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to 
[24-03-06 07:07:20.0990] Plugins::Spotty::API::Web::home (45) Returning cached Home menu structure for c4yc00 (2420799149243210645)
[24-03-06 07:07:20.0996] Plugins::Spotty::Connect::DaemonManager::__ANON__ (70) Discovery mode for Connect has changed - re-initialize Connect helpers
[24-03-06 07:07:20.1001] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:07:20.1020] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:07:20.1022] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:07:20.1042] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:07:21.0009] Plugins::Spotty::Connect::DaemonManager::initHelpers (92) Checking Spotty Connect helper daemons...
[24-03-06 07:07:21.0010] Plugins::Spotty::Connect::DaemonManager::initHelpers (126) This is a standalone player with Spotify Connect disabled: aa:aa:87:73:96:1c
[24-03-06 07:07:22.8181] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to 
[24-03-06 07:07:22.8183] Plugins::Spotty::AccountHelper::renameCacheFolder (134) Trying to rename __AUTHENTICATE__ to 
[24-03-06 07:07:22.8186] Plugins::Spotty::API::Web::home (45) Returning cached Home menu structure for c4yc00 (2420799149243210645)
[24-03-06 07:07:22.8302] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:07:22.8423] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty
[24-03-06 07:07:22.8428] Plugins::Spotty::Helper::_findBin (192) Trying helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:07:22.8541] Plugins::Spotty::Helper::_findBin (195) Found helper application: /var/lib/squeezeboxserver/cache/InstalledPlugins/Plugins/Spotty/Bin/i386-linux/spotty-x86_64
[24-03-06 07:08:05.1119] Slim::Utils::ImageResizer::__ANON__ (67) daemon failed to connect: No such file or directory
[24-03-06 07:08:08.1359] Plugins::Spotty::API::__ANON__ (1352) Trying to read from cache for browse/featured-playlists?country=PL&limit=50&locale=pl_PL&timestamp=2024-03-06T07%3A00%3A00
[24-03-06 07:08:08.1361] Plugins::Spotty::API::__ANON__ (1361) API call: browse/featured-playlists?country=PL&limit=50&locale=pl_PL&timestamp=2024-03-06T07%3A00%3A00
[24-03-06 07:08:08.2426] Plugins::Spotty::API::__ANON__ (1420) Caching result for 60 (https://api.spotify.com/v1/browse/featured-playlists?country=PL&limit=50&locale=pl_PL&timestamp=2024-03-06T07%3A00%3A00)
[24-03-06 07:08:08.2475] Plugins::Spotty::API::Pipeline::_followOffset (166) There's more data to grab, queue them up: {
  50 => {
          _no_revalidate => 1,
          country        => "PL",
          limit          => 50,
          locale         => "pl_PL",
          offset         => 50,
          timestamp      => "2024-03-06T07:00:00",
        },
}

Host (what you are running librespot on):

Additional context server 2.log.zip

michaelherger commented 4 months ago

This is not a librespot issue. Please close this in favour of https://github.com/michaelherger/Spotty-Plugin/issues/117.