Invalid refresh token #17

Closed
opened 2023-01-28 03:43:38 +01:00 by B00tLoad · 2 comments
B00tLoad commented 2023-01-28 03:43:38 +01:00 (Migrated from github.com)

After 1 hour (when the access token expired), refreshing the access token errors out.

StackTrace:

Exception in thread "main" java.lang.RuntimeException: se.michaelthelin.spotify.exceptions.detailed.BadRequestException: Invalid refresh token
	at de.b00tload.tools.lastfmtospotifyplaylist.LastFMToSpotify.main(LastFMToSpotify.java:142)
Caused by: se.michaelthelin.spotify.exceptions.detailed.BadRequestException: Invalid refresh token
	at se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:320)
	at se.michaelthelin.spotify.SpotifyHttpManager.post(SpotifyHttpManager.java:183)
	at se.michaelthelin.spotify.requests.AbstractRequest.postJson(AbstractRequest.java:121)
	at se.michaelthelin.spotify.requests.authorization.authorization_code.AuthorizationCodeRefreshRequest.execute(AuthorizationCodeRefreshRequest.java:36)
	at de.b00tload.tools.lastfmtospotifyplaylist.LastFMToSpotify.main(LastFMToSpotify.java:81)
After 1 hour (when the access token expired), refreshing the access token errors out. StackTrace: ``` Exception in thread "main" java.lang.RuntimeException: se.michaelthelin.spotify.exceptions.detailed.BadRequestException: Invalid refresh token at de.b00tload.tools.lastfmtospotifyplaylist.LastFMToSpotify.main(LastFMToSpotify.java:142) Caused by: se.michaelthelin.spotify.exceptions.detailed.BadRequestException: Invalid refresh token at se.michaelthelin.spotify.SpotifyHttpManager.getResponseBody(SpotifyHttpManager.java:320) at se.michaelthelin.spotify.SpotifyHttpManager.post(SpotifyHttpManager.java:183) at se.michaelthelin.spotify.requests.AbstractRequest.postJson(AbstractRequest.java:121) at se.michaelthelin.spotify.requests.authorization.authorization_code.AuthorizationCodeRefreshRequest.execute(AuthorizationCodeRefreshRequest.java:36) at de.b00tload.tools.lastfmtospotifyplaylist.LastFMToSpotify.main(LastFMToSpotify.java:81) ```
B00tLoad commented 2023-01-28 19:21:25 +01:00 (Migrated from github.com)

383990d did in fact not fix.

383990d did in fact not fix.
B00tLoad commented 2023-01-28 21:40:21 +01:00 (Migrated from github.com)

2086a85 did also not fix. Turns out refreshing the access token not always provides a refresh token, therefore the refresh token was null after refreshing once

2086a85 did also not fix. Turns out refreshing the access token not always provides a refresh token, therefore the refresh token was null after refreshing once
This repo is archived. You cannot comment on issues.