{"action":"opened","issue":{"url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/779","repository_url":"https://api.github.com/repos/elastic/elasticsearch-py","labels_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/779/comments","events_url":"https://api.github.com/repos/elastic/elasticsearch-py/issues/779/events","html_url":"https://github.com/elastic/elasticsearch-py/issues/779","id":317984054,"number":779,"title":"urllib3.exceptions.ProtocolError, BadStatusLine","user":{"login":"galuszkak","id":759579,"avatar_url":"https://avatars0.githubusercontent.com/u/759579?v=4","gravatar_id":"","url":"https://api.github.com/users/galuszkak","html_url":"https://github.com/galuszkak","followers_url":"https://api.github.com/users/galuszkak/followers","following_url":"https://api.github.com/users/galuszkak/following{/other_user}","gists_url":"https://api.github.com/users/galuszkak/gists{/gist_id}","starred_url":"https://api.github.com/users/galuszkak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galuszkak/subscriptions","organizations_url":"https://api.github.com/users/galuszkak/orgs","repos_url":"https://api.github.com/users/galuszkak/repos","events_url":"https://api.github.com/users/galuszkak/events{/privacy}","received_events_url":"https://api.github.com/users/galuszkak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-26T11:17:22Z","updated_at":"2018-04-26T11:17:22Z","closed_at":null,"author_association":"NONE","body":"```\r\nurllib3.exceptions.ProtocolError: ('Connection aborted.', BadStatusLine('-inventory_product\",\"_type\":\"product\",\"_id\":\"2YmKAWMBhLHMbxOgNI9D\",\"_score\":null,\"sort\":[1663]},{\"_index\":\"synthetic-inventory_product\",\"_type\":\"product\",\"_id\":\"3omKAWMBhLHMbxOgNI9D\",\"_score\":null,\"sort\":[1665]},{\"_index\":\"synthetic-inventory_product\",\"_type\":\"product\",\"_id\":\"34mKAWMBhLHMbxOgNI9D\",\"_score\":null,\"sort\":[1667]},{\"_index\":\"synthetic-inventory_product\",\"_type\":\"product\",\"_id\":\"8ImKAWMBhLHMbxOgNI-Q\",\"_score\":null,\"sort\":[1669]},{\"_index\":\"synthetic-inventory_product\",\"_type\":\"product\",\"_id\":\"9ImKAWMBhLHMbxOgNI-Q\",\"_score\":null,\"sort\":[1671]},{\"_index\":\"synthetic-inventory_product\",\"_type\":\"product\",\"_id\":\"94mKAWMBhLHMbxOgNI-Q\",\"_score\":null,\"sort\":[1673]}]}}HTTP/1.1 200 OK\r\n```\r\n\r\nSo clearly there is some issue that Status code is mixing with response. I'm not sure how this happens but we receive those responses when using celery (not sure if this have any to do with that). I'm not sure if this is Elastic issue, or Python issue, or library issue. I don't know where to start with debugging this, any clues where should I look to find root cause of this?\r\n\r\nWe are using Elastic 6.0.1 and `elasticsearch-dsl==6.1.0` and `elasticsearch==6.1.1`."}}
{"actor":{"display_login":"galuszkak"}}