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

Fixes HttpError and AuthError instanceof bug #1648

Merged

Conversation

infomiho
Copy link
Contributor

@infomiho infomiho commented Jan 19, 2024

We had two definitions of HttpError and AuthError both in server framework code, and in the sdk, the instanceof check in our error pipeline didn't work properly.

This would lead to unhandled errors in the server process. This PR changes the server code to use the same instance of HttpError as the user's code. That way if the user throws a HttpError in their operations, our server code can recognise that and handle it properly.

Copy link
Contributor

@sodic sodic left a comment

Choose a reason for hiding this comment

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

All good, we can merge this!

@infomiho infomiho merged commit 66682ff into filip-restructuring-prototype Jan 21, 2024
2 of 8 checks passed
@infomiho infomiho deleted the miho-prototype-instanceof-bug branch January 21, 2024 11:25
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