BingAds / BingAds-Python-SDK

Other
118 stars 164 forks source link

ConnectionResetError during the 1-22-2021 to 1-24-2021 #173

Closed litan1106 closed 3 years ago

litan1106 commented 3 years ago

ConnectionResetError during the 1-22-2021 to 1-24-2021

Usually, I can get success report with one attemplt. During 1-22-2021 to 1-24-2021, I had to run more than one attemps to get a success report. *This was flawless for the last 918 days.

`Saving report to /tmp/workspace/bing_ads/temp/report.Csv Traceback (most recent call last): File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen chunked=chunked, File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1369, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 310, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 271, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/ssl.py", line 1071, in recv_into return self.read(nbytes, buffer) File "/usr/local/lib/python3.7/ssl.py", line 929, in read return self._sslobj.read(len, buffer) ConnectionResetError: [Errno 104] Connection reset by peer

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/tmp/workspace/venv/lib/python3.7/site-packages/requests/adapters.py", line 449, in send timeout=timeout File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 756, in urlopen method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2] File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/util/retry.py", line 531, in increment raise six.reraise(type(error), error, _stacktrace) File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/packages/six.py", line 734, in reraise raise value.with_traceback(tb) File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 706, in urlopen chunked=chunked, File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 445, in _make_request six.raise_from(e, None) File "", line 3, in raise_from File "/tmp/workspace/venv/lib/python3.7/site-packages/urllib3/connectionpool.py", line 440, in _make_request httplib_response = conn.getresponse() File "/usr/local/lib/python3.7/http/client.py", line 1369, in getresponse response.begin() File "/usr/local/lib/python3.7/http/client.py", line 310, in begin version, status, reason = self._read_status() File "/usr/local/lib/python3.7/http/client.py", line 271, in _read_status line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1") File "/usr/local/lib/python3.7/socket.py", line 589, in readinto return self._sock.recv_into(b) File "/usr/local/lib/python3.7/ssl.py", line 1071, in recv_into return self.read(nbytes, buffer) File "/usr/local/lib/python3.7/ssl.py", line 929, in read return self._sslobj.read(len, buffer) urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))`

litan1106 commented 3 years ago

The timeout issue was resolved from the Microsoft Ads API support time.