I have been using a script to download HLS data from a Python script using my earth data credentials stored in a .netcr file. My first token expired today, giving me this error message when trying to do a search:
RuntimeError: {"errors":["Token [Bearer eyJXXXE6LLQ] has expired. Note the token value has been partially redacted."]}
I generated a new toke, but I still get the same error. Do I need to change something in my credential file? Or does it just take a day to apply the change?
Thanks!
New Token - Access HLS
-
- Posts: 6
- Joined: Mon Jan 15, 2024 11:05 am America/New_York
-
- User Services
- Posts: 296
- Joined: Mon Sep 30, 2019 10:00 am America/New_York
- Has thanked: 18 times
- Been thanked: 2 times
- Contact:
Re: New Token - Access HLS
Hi @cbourque17 It should not take a day to generate. If you haven't tried already, I recommend using the earthaccess package for an easy authentication or re-authentication. After installing and importing this package, runearthaccess.login(persist=True) function. This function will prompt for your NASA Earthdata username and password to create one if one does not exist and then uses your account information for authentication purposes. Thanks -- Danielle
Subscribe to the LP DAAC listserv by sending a blank email to lpdaac-join@lists.nasa.gov.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.
Sign up for the Landsat listserv to receive the most up to date information about Landsat data: https://public.govdelivery.com/accounts/USDOIGS/subscriber/new#tab1.