Authentication JSONDecodeError

While I want to authenticate via

connection.authenticate_oidc()

I am getting this error: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Can you show more of the error stack trace?
Because the screenshot you shared does not contain any reference to openeo related code

@stefaan.lippens


I think your refresh token file is corrupted (e.g. existing but empty).

can you to remove it with one of the approaches discussed here:
https://open-eo.github.io/openeo-python-client/auth.html#clear-the-refresh-token-file

FYI: I made a github ticket to improve error message: Better handling of corrupt config/refresh token file · Issue #268 · Open-EO/openeo-python-client · GitHub

1 Like

Thanks @stefaan.lippens. It solved the issue with JSONDecodeError.

Solution: RefreshTokenStore().remove()