Skip to content
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

Fixed urllib3 error. #18

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Fixed urllib3 error. #18

wants to merge 1 commit into from

Conversation

dstrib
Copy link

@dstrib dstrib commented Feb 6, 2020

When attempting to access archive Ensembl biomart servers such as: http://Apr2019.archive.ensembl.org , I kept receiving an error:

File "/apps/python3/3.6.5/lib/python3.6/site-packages/urllib3/response.py", line 543, in _update_chunk_length
    self.chunk_left = int(line, 16)

ValueError: invalid literal for int() with base 16: b''
[...]
  File "/apps/python3/3.6.5/lib/python3.6/site-packages/requests/models.py", line 748, in generate
    raise ChunkedEncodingError(e)
requests.exceptions.ChunkedEncodingError: ('Connection broken: IncompleteRead(0 bytes read)', IncompleteRead(0 bytes read))

I tracked it down to the cause mentioned here: psf/requests#4248
I added an implementation of their proposed solution by replacing a urllib3 method, which allowes the successful utilization of old Ensembl archive biomart source url's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant