Unable to refresh token
Hello! Yesterday I used dinamis-sdk to retrieve some Sentinel 2 data and all worked well. Today i tried to download again some data and the authentication failed with the same code provided below:
import dinamis_sdk
import pystac_client
api = pystac_client.Client.open(
'https://stacapi-cdos.apps.okd.crocc.meso.umontpellier.fr',
modifier=dinamis_sdk.sign_inplace,
)
query = api.search(collections="sentinel2-l2a-theia", datetime=["2022-03-01", "2022-03-31"], bbox=[5.44436625, 43.47025642, 5.80556526, 43.90600058])
len(list(query.items())) # or any other code to access to assets
And this time i got the following error:
...
access_token = get_access_token()
File "/home/lucas/Documents/Projets/cumul_ndvi/cumulndvi/lib/python3.10/site-packages/dinamis_sdk/auth.py", line 270, in _get_access_token
return session.get_access_token()
File "/home/lucas/Documents/Projets/cumul_ndvi/cumulndvi/lib/python3.10/site-packages/dinamis_sdk/auth.py", line 224, in get_access_token
self.jwt = self.grant.refresh_token(
File "/home/lucas/Documents/Projets/cumul_ndvi/cumulndvi/lib/python3.10/site-packages/dinamis_sdk/auth.py", line 93, in refresh_token
raise ConnectionError("Unable to refresh token")
ConnectionError: Unable to refresh token
The endpoint response error message gathered from auth.py line 90 contain is:
"Session doesn't have required client"
One more information: I use this from a different location from yesterday. I wonder if this can have an impact on JWT authentification tokens.
Thanks a lot!
Lucas