Closed betodealmeida closed 6 years ago
@gianm seems like that should be fixed upstream, but PyDruid should probably handle it as well for the sake of supporting previous versions.
@betodealmeida the build failed :(
Looks like JSONDecodeError
was introduced in Python 3.5 only, I added a workaround.
Our Druid cluster is returning an HTML error message when OOMing:
This message is not surfaced correctly to the client, since the client expects a JSON response from Druid. Here's how it's currently surfaced:
I modified the code that checks for errors in the client so that if an HTML response is returned the error message is correctly extracted from the
<PRE></PRE>
tags. With this, the error is surfaced correctly (although somewhat verbose):