-
-
Notifications
You must be signed in to change notification settings - Fork 476
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
Daemon returns different formats of error message #1808
Comments
we could change that but when multi queries will not work - maybe it needs another buddy replication protocol improvement |
I think, it would be enough to implement a unified format just for |
As discussed, please provide more info on how the queries are executed (i.e. what Buddy receives/returns) |
It looks like it was assigned to Nick by mistake. Reassigning to @tomatolog to estimate. |
This issue blocks manticoresoftware/openapi#16 |
fixed at the https://github.com/manticoresoftware/manticoresearch/tree/doc_post_error branch as I changed error format for insert/replace/update/delete HTTP JSON endpoints to be the same as it is in the compatibility mode, ie has
That is different from the initial description at #1808 (comment) however that reduces the error formats for HTTP JSON endpoints. I push the change in the branch as think that could break the different APIs and this change should be merged into master along with the API change. |
I'd also add different types of |
I've tested it with the |
unable to reproduce - use daemon from the https://github.com/manticoresoftware/manticoresearch/tree/doc_post_error and the requests from the issue description without buddy and all works fine - I see the only new error format
to investigate issue further I need the requests examples along with replies to make sure we check the same case |
Obviously, there was an error with my previous tests. After I've rebuilt Manticore and repeated the tests, the issue is not reproduced. The response formats are returned just as expected without Buddy. |
In some cases, daemon can return different formats of error message for the same operation. The returned format depends on a specific error. E.g., here are two responses for the
insert
request when daemon is used without Buddy:This can lead to problems with our OpenAPI-generated clients, so we should think of unifying those response formats in some way.
The text was updated successfully, but these errors were encountered: