Skip to content

Fix NLDAS-2 Data Download - #49

Merged
JoshCederstrom merged 2 commits into
mainfrom
fix/giovanni-hangup
Jul 13, 2026
Merged

Fix NLDAS-2 Data Download#49
JoshCederstrom merged 2 commits into
mainfrom
fix/giovanni-hangup

Conversation

@JoshCederstrom

Copy link
Copy Markdown
Collaborator

This release fixes NLDAS-2 downloads failing with 403 Forbidden errors from the NASA Giovanni timeseries API. All download requests in get_nldas_point were rejected because the authentication token sent with each request was malformed.

The root cause was a change on NASA's end. The previous implementation retrieved a token from the undocumented Giovanni /signin endpoint, which originally returned the token as a bare quoted string. NASA has since changed the response to a JSON object ({"expires_in": ..., "token": ...}), so the old parsing produced a garbled token and every subsequent request returned 403. Rather than re-parsing the new response format, this release replaces the /signin flow entirely with NASA's documented authentication workflow for the Giovanni API: an Earthdata Login (EDL) bearer token retrieved via earthaccess, per the official GES DISC tutorial. This avoids depending on an undocumented endpoint that may change again.

@JoshCederstrom JoshCederstrom self-assigned this Jul 13, 2026
@JoshCederstrom JoshCederstrom added the bug Something isn't working label Jul 13, 2026
@JoshCederstrom
JoshCederstrom merged commit 4fc750d into main Jul 13, 2026
2 checks passed
@JoshCederstrom
JoshCederstrom deleted the fix/giovanni-hangup branch July 13, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant