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

properly handle echo http wrapped errors #288

Merged
merged 1 commit into from
Sep 13, 2024
Merged

Conversation

mikemrm
Copy link
Contributor

@mikemrm mikemrm commented Sep 11, 2024

Errors may be wrapped by a specific echo http error by a handler.
In some cases (such as canceled context) this might report as a 500
error, however this error might've been triggered by the requestor.

To simplify handling this scenario, we will unwrap the http error,
preserving the original message only if the error is a context canceled
error and the request context has been canceled.

Errors may be wrapped by a specific echo http error by a handler.
In some cases (such as canceled context) this might report as a 500
error, however this error might've been triggered by the requestor.

To simplify handling this scenario, we will unwrap the http error,
preserving the original message only if the error is a context canceled
error and the request context has been canceled.

Signed-off-by: Mike Mason <[email protected]>
@mikemrm mikemrm marked this pull request as ready for review September 11, 2024 20:04
@mikemrm mikemrm requested review from a team as code owners September 11, 2024 20:04
@mikemrm mikemrm merged commit d69167f into main Sep 13, 2024
5 checks passed
@mikemrm mikemrm deleted the handle-echo-wrapped-errors branch September 13, 2024 15:14
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