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

Give 400 error for invalid query values #610

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Jun 20, 2024

If a user provides an invalid value in the search query, return a 400 status rather than 500.
Hopefully resolves #605.


📚 Documentation preview 📚: https://datacube-explorer--610.org.readthedocs.build/en/610/

@Ariana-B Ariana-B requested review from jeremyh and omad June 20, 2024 01:53
Copy link
Member

@omad omad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@omad omad merged commit 49388cd into develop Jun 20, 2024
9 checks passed
@omad omad deleted the better_error_handling branch June 20, 2024 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid date strings in search queries are not being caught gracefully and crash the pod
2 participants