Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAAP API /cmr/granules/{granule}/data endpoint swallows errors #888

Closed
bsatoriu opened this issue Jan 8, 2024 · 0 comments
Closed

MAAP API /cmr/granules/{granule}/data endpoint swallows errors #888

bsatoriu opened this issue Jan 8, 2024 · 0 comments
Assignees
Labels
API MAAP API Subsystem Bug Something isn't working
Milestone

Comments

@bsatoriu
Copy link
Collaborator

bsatoriu commented Jan 8, 2024

When a 4xx or 5xx error is received from an external DAAC when attempting to download a granule, the MAAP API data endpoint will ignore the error and return a 200 response, with one exception: a 401 error.

Update the CMR data endpoint to return the correct error message and code from the DAAC.

@bsatoriu bsatoriu added API MAAP API Subsystem Bug Something isn't working labels Jan 8, 2024
@bsatoriu bsatoriu self-assigned this Jan 8, 2024
@bsatoriu bsatoriu added this to the 3.1.4 milestone Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API MAAP API Subsystem Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants