Open ePaul opened 4 years ago
When Nakadi replies with an error which can't be parsed as application/problem+json,
@adyach is there a bug filed against Nakadi for this? The server shouldn't be emitting junk entities.
@dehora it looks like it can not be covered by Nakadi, because response can be made from load balancer for example which can be arbitrary text.
Current behavior
When Nakadi replies with an error which can't be parsed as application/problem+json, then Nakadi-Java throws just a NakadiException wrapping a JsonSyntaxException, without any trace of the original error message by Nakadi.
(This might currently be happening due to rate limiting on Nakadi-Staging at Zalando.)
Expected behavior
application/problem+json
, don't try to parse it as such.