-
Notifications
You must be signed in to change notification settings - Fork 212
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
download_node_src does not properly handle multipart downloads #324
Comments
We are being affected by this issue as well, are maintainers ok to switch from urllib to For future ref - potentially related issue here |
We are getting hit by the same issue. Inside precommit. Switching to requests sounds reasonable to me. |
Is there anything that makes requests preferable over urllib3 (that requests depends on)? |
seem like #329 wasn't enough to fix ths issue we are still get hit by it from time to time: @hynek if request would know to handle downloading a multi part file out of the box better then urllib3, it good enough reason if it would be my code. |
I could not reach a point where I was able to reproduce the issue consistently so I can't confirm that the issue is related with multipart download, I would expect that to be easily reproducible. So it's unclear if |
FYI nodejs/build#1993 |
We also affected by that when using |
maybe there a different place the node binary can be retrieved from ? mirrors or something like that ? |
The method
download_node_src
fails if the download doesn't complete in a single part. In my case this lead to a seemingly unrelated errorAttributeError: 'bytes' object has no attribute 'tell'
deep in the tarfile module. The exception handler,assigned a bytes object to
dl_contents
instead of aBytesIO
. However, updating the exception still did not work because "partial" really does mean partial, and is not the complete file so there is no way to use this. Also, simply calling read() again also appears not to be the way to handle multipart.I got this to work by using requests, which appears to handle this properly
The text was updated successfully, but these errors were encountered: