-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth access token expires #734
Comments
What is it doing in the background for 6 hours in the first place. Usually, the android system should kill/suspend the app if it's in background and not doing anything Also it can only refresh if it's in foreground (like playing music in background or user focused) ig thus it failed |
I do not know how to tell if an app is backgrounded and running or suspended. It was ignored for hours and non-functional when I used it again. Killing and restarting Spotube gets a fresh OAuth token, so I believe that is not what Android did. Is resuming from suspend supposed to renew the credentials? I might have paused the music, if that matters. (Could the process have been kept alive by that music player that appears when I pull down from the top of the screen?) |
Yea I think I've make sure when app is resumed from the background, the credentials get renewed |
Hey! |
Same here, Linux (Fedora 40) installed via Flatpak. After a while, I haven't timed it, but it happens while I'm actively playing music, if I try and search or play from playlists or select another album or anything it just doesn't ever start playing and in the search I get the token expired message. So I think it needs to be refreshed regularly while the app is running? Restarting the app fixes it. Awesome app though @KRTirtho, very impressive! |
still happening on android |
also still happening on windows - im currently listening to music but the search function doesn´t work with the same error: OAuth authorization error (invalid_token): The access token expired. i don´t know how long an oauth2 token is valid with spotifys implementation but i agree with @SrIzan10 on this one - it would be very useful to make the app request the token again but imo only when being brought back up in foreground as the app doesn´t need a new token while not being in foreground - listening to music somehow keeps working as i previously mentioned |
This is happening again on v3.8.0, downloaded from F-Droid This is the new related issue: #1790 |
Is there an existing issue for this?
Current Behavior
When I start Spotube on my phone, it works at first, signing in with my Spotify credentials. I can do a search and see results. After some hours of not using it, when I open Spotube again, it shows where I left off in my search, but instead of results there is a blank area. If I try the search again, I see this error:
In the logs, I see the same thing:
I tried various things to get it to reconnect and the easiest workaround is to kill Spotube and restart it. It will automatically login and get a fresh OAuth token.
Expected Behavior
I expected Spotube to detect when the token expired and request a fresh one
Steps to reproduce
Operating System
Android OSP (GrapheneOS)
Spotube version
v3.1.1
Installation source
F-Droid (Android)
Additional information
I do not know if this problem occurs when playing music, but I presume not or other people would have noticed.
The text was updated successfully, but these errors were encountered: