Skip to content

The RefreshTokenProducer is null #341

@lillithkt

Description

@lillithkt

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions