You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are getting errors from the Druid APIs but it is in a bytes format b''. When the error response passed to the json.loads() it will crash. I think this happening after this PR #121.
Error Details
excepturllib.error.HTTPErrorase:
err=e.read()
ife.code==500:
# has Druid returned an error?try:
err=json.loads(err) # ERROR HAPPEN HEREexceptValueError:
ifHTML_ERROR.search(err):
err=HTML_ERROR.search(err).group(1)
except (ValueError, AttributeError, KeyError):
pass
err = b'{"error":"Unknown exception","errorMessage":"Failure getting results for query[85d259df-c0ea-43c7-93d9-49e609b3b203] url[http://druid/druid/v2/] because of [org.jboss.netty.channel.ChannelException: Channel disconnected]","errorClass":"org.apache.druid.java.util.common.RE","host":null}'
versions
Druid version: 0.16.0
Python: 3.5.3
PyDruid: 0.5.7
The text was updated successfully, but these errors were encountered:
Overview
We are getting errors from the Druid APIs but it is in a bytes format
b''
. When the error response passed to thejson.loads()
it will crash. I think this happening after this PR #121.Error Details
versions
The text was updated successfully, but these errors were encountered: