Closed jwelch1324 closed 3 years ago
It seems that from_token is not async, I added that to the declaration. It fixed this issue but returns a Wrapper user object.
async def from_token(
cls,
client: "spotify.Client",
token: Optional[str],
refresh_token: Optional[str] = None,
) -> WrappedUser:
I opened (my first ever) PR #68 where I removed await
from return await cls.from_token(client, token, refresh_token)
in User.from_code
. Now await spotify.User.from_code(...)
seems to work for me in FastAPI and Flask.
When attempting to run the Flask example on the main README I get the following error
I am running the following python environment: