-
Notifications
You must be signed in to change notification settings - Fork 321
add HttpError, StreamError & CosmosError #251
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this, great work!
Unfortunately the E2E tests are failing.
The repro is: cargo run --example create_delete_database dbname:
Error: GenericErrorWithText("String has an unrecognized part. Part: \"interopUsers=2000\", Full string: \"databases=1000;collections=5000;users=500000;permissions=2000000;interopUsers=2000;authPolicyElements=200000;\"")Edit: it does not work on master either. I have created a separate issue (#256) so I would go ahead and merge this and tackle the bug in a separate PR.
|
@MindFlavor, thanks for the steps to reproduce. I added support for |
| #[error("Failed to serialize request body as json: {}", 0)] | ||
| BodySerializationError(serde_json::Error), | ||
| #[error( | ||
| "Unexpected HTTP result (expected: {:?}, received: {:?}, body: {:?})", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes #212. I added body to the error message.
| UnexpectedStatusCode { | ||
| expected: Vec<StatusCode>, | ||
| received: StatusCode, | ||
| body: String, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the services, I leave this as Bytes.
Uh oh!
There was an error while loading. Please reload this page.