Having the same errors. I'd say its 10% with errors. Hard to say. My stack is on 6.5. apm python agent 4.0.3 has way less errors like this than the 4.1. However even apm python agent 4.0.3 does it in like 1% of situations. The apm logs have nothing - only logging success. Python 3.6.5.
urllib3==1.24.1 # via botocore, django-revproxy, elastic-apm, requests
Traceback (most recent call last):
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/newrelic/hooks/external_urllib3.py", line 16, in _nr_wrapper_make_request_
return wrapped(*args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/raven/breadcrumbs.py", line 390, in getresponse
rv = real_getresponse(self, *args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/newrelic/hooks/external_httplib.py", line 69, in httplib_getresponse_wrapper
return wrapped(*args, **kwargs)
File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
http.client.RemoteDisconnected: Remote end closed connection without response
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/elasticapm/transport/http.py", line 40, in send
"POST", url, body=data, headers=self._headers, timeout=self._timeout, preload_content=False
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/poolmanager.py", line 323, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/elasticapm/instrumentation/packages/base.py", line 106, in call_if_sampling
return wrapped(*args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/elasticapm/instrumentation/packages/base.py", line 106, in call_if_sampling
return wrapped(*args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/util/retry.py", line 367, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/packages/six.py", line 685, in reraise
raise value.with_traceback(tb)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/newrelic/hooks/external_urllib3.py", line 16, in _nr_wrapper_make_request_
return wrapped(*args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 384, in _make_request
six.raise_from(e, None)
File "<string>", line 2, in raise_from
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/urllib3/connectionpool.py", line 380, in _make_request
httplib_response = conn.getresponse()
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/raven/breadcrumbs.py", line 390, in getresponse
rv = real_getresponse(self, *args, **kwargs)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/newrelic/hooks/external_httplib.py", line 69, in httplib_getresponse_wrapper
return wrapped(*args, **kwargs)
File "/usr/lib/python3.6/http/client.py", line 1331, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 297, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 266, in _read_status
raise RemoteDisconnected("Remote end closed connection without"
urllib3.exceptions.ProtocolError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/elasticapm/transport/base.py", line 184, in send_sync
self.handle_transport_fail(exception=e)
File "/home/deploy/my_proj/live/lib/python3.6/site-packages/elasticapm/transport/http.py", line 53, in send
raise TransportException(message, data, print_trace=print_trace)
elasticapm.transport.base.TransportException: Unable to reach APM Server: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response',)) (url: http://es1.my_proj.com:8200/intake/v2/events)