yosukesan / clfi

MIT License
0 stars 0 forks source link

add: requests retry #17

Open yosukesan opened 1 year ago

yosukesan commented 1 year ago

to prevenet this. Check default parameter if retry is set close this issue without modification. If it's not add suitable retry with suitable parameters.

3321 Traceback (most recent call last):
3322   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
3323     httplib_response = self._make_request(
3324   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 445, in _make_request
3325     six.raise_from(e, None)
3326   File "<string>", line 3, in raise_from
3327   File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 440, in _make_request
3328     httplib_response = conn.getresponse()
3329   File "/usr/lib/python3.9/http/client.py", line 1347, in getresponse
3330     response.begin()
3331   File "/usr/lib/python3.9/http/client.py", line 307, in begin
3332     version, status, reason = self._read_status()
3333   File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
3334     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
3335   File "/usr/lib/python3.9/socket.py", line 704, in readinto
3336     return self._sock.recv_into(b)
3337   File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
3338     return self.read(nbytes, buffer)
3339   File "/usr/lib/python3.9/ssl.py", line 1099, in read
3340     return self._sslobj.read(len, buffer)
3341 ConnectionResetError: [Errno 104] Connection reset by peer
3342 
3343 During handling of the above exception, another exception occurred: