Open FMeinicke opened 1 year ago
Hello, this is something that should already be working. I stored the last timestamp I requested the data from Spotify. What can happen is that we cannot request more than few days ago, leading to missing data as you have.
I use the after
parameter in this call.
Hmm, interesting. I definitely used Spotify the last couple of days but it only shows the songs I listened to today (this does include songs from this morning which was before I restarted the container, so some past songs have indeed been retrieved).
Do you think that the database connection error has something to do with the server not doing any requests anymore and would you say that this error can be recovered?
Thanks for the fast reply, BTW :)
Describe the bug
I was wondering why I didn't see any data over the past week or so. The last day that had data was 14.07.2023. Looking into the Spotify Developer Dashboard confirmed that there weren't any API calls after that date. Inspecting the container showed the following error message:
Therefore it seems to me that after this network error happened something in the server stopped working.
Simply restarting the container fixed the issue and I'm seeing the data of the current day at least (seems like I have to import the data for the days since the error up to today to get my complete history).
Expected behavior
Graceful recovery in case of such errors, i.e. restarting the polling of the Spotify API.
Screenshots
Spotify Dashboard:![Spotify Dashboard](https://github.com/Yooooomi/your_spotify/assets/42121639/0db3a6c9-a1ef-4545-9fb3-0c6233ec85c7)
your_spotify timeline:![your_spotify timeline](https://github.com/Yooooomi/your_spotify/assets/42121639/16a80070-5a49-44b4-a8c4-d0e55f0309e2)
(Looking at the monthly timeline it seems I had this issue earlier this month as well but didn't notice it. I think I restarted my docker host about 2 weeks ago which would fix the issue.)