<p>When I am running a Python micro-service in a dockerized or kubernetes container it works just fine. But with Istio service mesh, it is not working.</p>

<p>I have added ServiceEntry for two of my outbound external http apis. It seems I can access the url content form inside the container using curl command which is inside service mesh. So, I think the service entries are fine and working. </p>

<p>But when I try from the micro-service which uses xml.sax parser in Python, it gives me the <code>upstream connect error or disconnect/reset before headers</code> though the same application works fine without Istio.</p>

<p>I think it is something related to Istio or Envoy or Python. </p>

<p>Update: I did inject the Istio-proxy side-car. I have also added ServiceEntry for external MySQL database and mysql is connected from the micro-service. </p>

rayhan
<p>I have found the reason for this not working. My Python service is using xml.sax parser library to parse xml form the internet, which is using the legacy urllib package which initiate http/1.0 request. </p>

<p>Envoy doesn't support http/1.0 protocol version. Hence, it is not working. I made the workaround by setting global.proxy.includeIPRanges="10.x.0.1/16" for Istio using helm. This actually bypass the entire envoy proxy for all outgoing connections outside the given ip ranges.</p>

<p>But I would prefer not to globally bypass Istio.</p>
