Skip to content

CI: Allow more permissive HTTP retries/timeouts when connecting to conda #47260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 9, 2022

Conversation

mroeschke
Copy link
Member

Hoping this alleviates the following traceback that has been occurring recently

     Traceback (most recent call last):
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 438, in _error_catcher
          yield
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 767, in read_chunked
          chunk = self._handle_chunk(amt)
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 711, in _handle_chunk
          value = self._fp._safe_read(amt)
        File "/usr/share/miniconda/lib/python3.9/http/client.py", line 626, in _safe_read
          chunk = self.fp.read(min(amt, MAXAMOUNT))
        File "/usr/share/miniconda/lib/python3.9/socket.py", line 704, in readinto
          return self._sock.recv_into(b)
        File "/usr/share/miniconda/lib/python3.9/ssl.py", line 1241, in recv_into
          return self.read(nbytes, buffer)
        File "/usr/share/miniconda/lib/python3.9/ssl.py", line 1099, 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 "/usr/share/miniconda/lib/python3.9/site-packages/requests/models.py", line 760, in generate
          for chunk in self.raw.stream(chunk_size, decode_content=True):
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 572, in stream
          for line in self.read_chunked(amt, decode_content=decode_content):
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 793, in read_chunked
          self._original_response.close()
        File "/usr/share/miniconda/lib/python3.9/contextlib.py", line 137, in __exit__
          self.gen.throw(typ, value, traceback)
        File "/usr/share/miniconda/lib/python3.9/site-packages/urllib3/response.py", line 455, in _error_catcher
          raise ProtocolError("Connection broken: %r" % e, e)
      urllib3.exceptions.ProtocolError: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer'))

@mroeschke mroeschke added the CI Continuous Integration label Jun 6, 2022
@mroeschke mroeschke added this to the 1.5 milestone Jun 6, 2022
@mroeschke
Copy link
Member Author

Failure will be fixed by #47259

@mroeschke mroeschke merged commit 6317d81 into pandas-dev:main Jun 9, 2022
@mroeschke mroeschke deleted the ci/conda_connections branch June 9, 2022 18:57
yehoshuadimarsky pushed a commit to yehoshuadimarsky/pandas that referenced this pull request Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant