Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.64k stars 108 forks source link

Data is not being pulled from Spotify. #369

Closed dlmservers closed 3 months ago

dlmservers commented 3 months ago

Describe the bug Data is not being pulled from Spotify after 2024/03/08 Logs may suggest improper authorization, I've rotated my key with no success. Unsure what the issue is.

Expected behavior The data should be pulled.

Screenshots image You can see activity drop off in this screenshot. Appears to have happened after I updated to 1.8.1 and 1.9 Rolling back to 1.7.3 or 1.8.0 does not fix the issue.

See attached logs and compose

docker-compose.txt spotify-server-1_logs.txt spotify-web-1_logs.txt

Yooooomi commented 3 months ago

You just need to hit the relog button in the settings page. It seems that your refresh token is not available anymore. Also, please do not downgrade the version, as it could lead to undesired behavior and potentially unrecoverable corruption.

dlmservers commented 3 months ago

You just need to hit the relog button in the settings page. It seems that your refresh token is not available anymore. Also, please do not downgrade the version, as it could lead to undesired behavior and potentially unrecoverable corruption.

Gotcha, I had snapshots of the VM it was running on, restored a copy before I upgraded. I don't see any signs of corruption however doing a relog did not help. This problem is for all 3 of the accounts registered on the server.

Yooooomi commented 3 months ago

Can you try creating another Spotify application and adding the 3 users to this application and update the tokens accordingly in your compose file?

dlmservers commented 3 months ago

That did it, I guess Spotify had an issue with my previous application.

It appears to have only pulled data back to the 12th, so I'm missing ~3 days (9th-11th). Anyway I can get that data in? I'm sure it's a limitation of the API but honestly not a big deal just curious.

Yooooomi commented 3 months ago

That's weird! You could maybe edit the last time is synced in the database for your account to force to request from 3 days ago but I'm not sure it would work. Otherwise ask for your privacy data but not the most simple thing. Glad creating a new application worked to be honest, otherwise I would be completely lost. Closing a resolved :)