-
Notifications
You must be signed in to change notification settings - Fork 16
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
Errors in response #350
Comments
Yeah we definitely want |
@maheshrajamani @tatu-at-datastax The cause was added as the second error, as in many cases it can help understand what was the original cause.. It's not only for users, but also for us later on.. The behavior is standardized , no matter if the cause is Even in the example above, for me the error at index Regarding the |
@ivansenic This sounds good to me -- we can re-visit this if need be, but I agree that ability to have multiple failures is useful; and in cases we don't want that, avoiding adding (or suppressing) cause makes sense. |
If there is an error thrown during deserialization of commands, response has array of errors as below. The error message in index 0 adds no value. In my opinion it needs to be removed.
Also the error code is missing on the raised error, in this case expecting
"errorCode" : INVALID_FILTER_EXPRESSION
{ "errors": [ { "message": "$in operator must have at least one value (through reference chain: io.stargate.sgv2.jsonapi.api.model.command.impl.FindOneCommand[\"filter\"])", "exceptionClass": "JsonMappingException" }, { "message": "$in operator must have at least one value", "exceptionClass": "JsonApiException" } ] }
@ivansenic @amorton @tatu-at-datastax
The text was updated successfully, but these errors were encountered: