-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error message is lost when publishing invalid events #116
Comments
@GJL This is an issue with the Nakadi implementation; it doesn't match its API. I'd suggest filing a bug upstream in Nakadi. Will leave this open for the time being. |
@dehora Sorry, I am on vacation and only now had time to reply. https://github.com/zalando/nakadi/blob/master/api/nakadi-event-bus-api.yaml#L377
To me it seems that the behavior is documented correctly in the Nakadi project: The return type can be an array. |
Got it. The server's also returning the wrong format for some errors, which distracted me. Marking this as a bug in batch handling. |
This supports the case when the server returns 207 or 422 for an event post. It also provides a convenience method on EventResource that returns a BatchItemResponseCollection instead of having to marshal the Response content from the other send methods. For #116.
This supports the case when the server returns 207 or 422 for an event post. It also provides a convenience method on EventResource that returns a BatchItemResponseCollection instead of having to marshal the Response content from the other send methods. For #116.
This supports the case when the server returns 207 or 422 for an event post. It also provides a convenience method on EventResource that returns a BatchItemResponseCollection instead of having to marshal the Response content from the other send methods. For #116.
This supports the case when the server returns 207 or 422 for an event post. It also provides a convenience method on EventResource that returns a BatchItemResponseCollection instead of having to marshal the Response content from the other send methods. For #116.
There's a patch for this in #122 which has been released as 0.7.5 |
Had a report from a customer it's working for them in 0.7.5, closing |
Nakadi returns an array instead of a single object when schema violations are found. Find example below.
[{"publishing_status":"failed","detail":"#: 2 schema violations found\n#: ... }]
However,
OkHttpResource.handleError()
expects a singleProblem
object:Hence, the deserialization with gson fails with the following exception:
The text was updated successfully, but these errors were encountered: