When a user logs in via the hub, their Earthdata tokens need to propagate to the MAAP API to avoid permission errors when calling URS-dependent endpoints. Example error:
File "/projects/code/hls-composite/main.py", line 442, in run
creds = maap.aws.earthdata_s3_credentials(
"https://data.lpdaac.earthdatacloud.nasa.gov/s3credentials"
)
File "/projects/code/hls-composite/.venv/lib/python3.13/site-packages/maap/AWS.py", line 62, in earthdata_s3_credentials
response.raise_for_status()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/projects/code/hls-composite/.venv/lib/python3.13/site-packages/requests/models.py", line 1026, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: INTERNAL SERVER ERROR for url: https://api.maap-project.org/api/members/self/awsAccess/edcCredentials/https%253A%252F%252Fdata.lpdaac.earthdatacloud.nasa.gov%252Fs3credentials
When a user logs in via the hub, their Earthdata tokens need to propagate to the MAAP API to avoid permission errors when calling URS-dependent endpoints. Example error: