spotify-web-api-kotlin icon indicating copy to clipboard operation
spotify-web-api-kotlin copied to clipboard

The RefreshTokenProducer is null

Open lillithkt opened this issue 5 months ago • 0 comments

Describe the bug When trying to recreate the client from a token stored in a file, i get the following error: kt com.adamratzman.spotify.SpotifyException$ReAuthenticationNeededException: Re-authentication is needed. at com.adamratzman.spotify.SpotifyApi.refreshToken(SpotifyApi.kt:221) at com.adamratzman.spotify.http.HttpRequest.execute(HttpRequest.kt:146) at com.adamratzman.spotify.http.HttpRequest$execute$1.invokeSuspend(HttpRequest.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:811) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:715) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:702) Caused by: java.lang.IllegalStateException: The refreshTokenProducer is null. ... 9 more

To Reproduce load a token via kt authorization = SpotifyUserAuthorization( tokenString = config!!.auth.token, refreshTokenString = config!!.auth.refreshToken )

Expected behavior refreshTokenProducer to be prefilled

Desktop (please complete the following information):

  • OS: Windows 11

lillithkt avatar Sep 16 '24 00:09 lillithkt