Skip to content

Update exception handling to support RpcErrors. #72

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

Merged
merged 1 commit into from
Jan 16, 2024

Conversation

justinGilmer
Copy link

Previously, when we encountered an exception that was either a BTrDBError or a RpcError, we would then parse both of these exception types as a btrdberror, which can lead to confusing error messages when apifrontend is down.

You could get an error like the following:

conn.info()
>>> BtrdbError stream removed

When this is acually a grpc/rpc error about the connection/stream between the server/client. This can lead folks to thinking that their data streams have been deleted, etc.

Copy link

@jleifnf jleifnf left a comment

Choose a reason for hiding this comment

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

LGTM.

@jleifnf
Copy link

jleifnf commented Jan 5, 2024

Might need another PR to add the additional codes sent from btrdb into BTRDB_SERVER_ERRORS list

@justinGilmer justinGilmer merged commit d88292f into staging Jan 16, 2024
@justinGilmer justinGilmer deleted the capture_grpc_errors branch January 16, 2024 19:11
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