Hey,
I’m trying to upload minidump of size ~150MB using Python3:
for dump in dumps: params = ( ('sentry_key', '<key>'), ) files = { 'upload_file_minidump': open(dump, 'rb') } requests.post(SENTRY_UPLOAD_API, params=params, files=files)
But for some reason I’m getting ConnectionError:
Traceback (most recent call last):
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 603, in urlopen
chunked=chunked)
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 387, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 383, in _make_request
httplib_response = conn.getresponse()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 1344, in getresponse
response.begin()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 306, in begin
version, status, reason = self._read_status()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 275, in _read_status
raise RemoteDisconnected(“Remote end closed connection without”
http.client.RemoteDisconnected: Remote end closed connection without responseDuring handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:\Projects\my_project\venv\lib\site-packages\requests\adapters.py”, line 449, in send
timeout=timeout
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 641, in urlopen
_stacktrace=sys.exc_info()[2])
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\util\retry.py”, line 368, in increment
raise six.reraise(type(error), error, _stacktrace)
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\packages\six.py”, line 685, in reraise
raise value.with_traceback(tb)
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 603, in urlopen
chunked=chunked)
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 387, in _make_request
six.raise_from(e, None)
File “”, line 2, in raise_from
File “D:\Projects\my_project\venv\lib\site-packages\urllib3\connectionpool.py”, line 383, in _make_request
httplib_response = conn.getresponse()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 1344, in getresponse
response.begin()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 306, in begin
version, status, reason = self._read_status()
File “D:\Program Files (x86)\Python\Python37-32\lib\http\client.py”, line 275, 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 “D:\Projects\my_project\venv\lib\site-packages\requests\api.py”, line 60, in request
return session.request(method=method, url=url, **kwargs)
File “D:\Projects\my_project\venv\lib\site-packages\requests\sessions.py”, line 533, in request
resp = self.send(prep, **send_kwargs)
File “D:\Projects\my_project\venv\lib\site-packages\requests\sessions.py”, line 646, in send
r = adapter.send(request, **kwargs)
File “D:\Projects\my_project\venv\lib\site-packages\requests\adapters.py”, line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’))
I’ve spent half of a day googling, tried changing User-Agent as someone suggested that standard one might be the reason, but so far no luck. Can anyone help? Thanks in advance.
Sentry 10.1.0.dev 05e720a7