Skip to content

PDS: Fix catcher error handling#51

Merged
rudyfraser merged 5 commits intoblacksky-algorithms:mainfrom
TheRipperoni:FixCatcherErrorHandling
Feb 14, 2025
Merged

PDS: Fix catcher error handling#51
rudyfraser merged 5 commits intoblacksky-algorithms:mainfrom
TheRipperoni:FixCatcherErrorHandling

Conversation

@TheRipperoni
Copy link
Contributor

Current behavior when request guards are triggered returns a http status of 500. This changes the behavior to respond as is intended by utilizing ApiError.

Technical note, the use of request.local_cache is to allow for us to pass the error response back to the catcher. Rocket has plans to add behavior to pass error bodies to the catcher in the future, but it is not currently supported otherwise.

@TheRipperoni
Copy link
Contributor Author

Merged latest main in

@TheRipperoni TheRipperoni changed the title Fix catcher error handling PDS: Fix catcher error handling Feb 9, 2025
2. Ran rustfmt
@rudyfraser rudyfraser merged commit efd2104 into blacksky-algorithms:main Feb 14, 2025
4 checks passed
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.

2 participants