You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nodeenv --prebuilt --node=10.16.0 --python-virtualenv
* Install prebuilt node (10.16.0) .Traceback (most recent call last):
File "/srv/env/bin/nodeenv", line 8, in <module>
sys.exit(main())
File "/srv/env/lib/python3.6/site-packages/nodeenv.py", line 1010, in main
create_environment(env_dir, opt)
File "/srv/env/lib/python3.6/site-packages/nodeenv.py", line 843, in create_environment
install_node(env_dir, src_dir, opt)
File "/srv/env/lib/python3.6/site-packages/nodeenv.py", line 658, in install_node
download_node_src(node_url, src_dir, opt, prefix)
File "/srv/env/lib/python3.6/site-packages/nodeenv.py", line 534, in download_node_src
dl_contents = io.BytesIO(urlopen(node_url).read())
File "/opt/Python-3.6.8/lib/python3.6/http/client.py", line 462, in read
s = self._safe_read(self.length)
File "/opt/Python-3.6.8/lib/python3.6/http/client.py", line 614, in _safe_read
raise IncompleteRead(b''.join(s), amt)
http.client.IncompleteRead: IncompleteRead(13844233 bytes read, 6305259 more expected)
Encoutering this with versions 1.1.2 as well as the latest 1.3.5
Could it be an alternative to show an error message with the URL of the service that doesn't work? I think that would make the error easier to troubleshoot.
(I experienced this issue in pre-commit, and wasn't able to figure out that it was related to nodeenv.)
Reacted by Henning Jacobs, Frazer McLean, Konstantin Manna, Milind Shakya and Luccccifer
Activity
asottile commentedon Apr 6, 2020
This happens when nodejs.org has a blip or the local network has a blip -- I don't think there's anything fixable here
hjacobs commentedon Apr 6, 2020
I have the same problem right now: https://travis-ci.org/github/hjacobs/kube-janitor/builds/671742857?utm_medium=notification&utm_source=github_status
yhoiseth commentedon Apr 6, 2020
Could it be an alternative to show an error message with the URL of the service that doesn't work? I think that would make the error easier to troubleshoot.
(I experienced this issue in pre-commit, and wasn't able to figure out that it was related to nodeenv.)
milind-shakya-sp commentedon Apr 6, 2020
The url itself seems to be https://nodejs.org/dist/v10.16.2/node-v10.16.2-linux-x64.tar.gz
downloading seems sluggish.
(atleast for me)
adithyabsk commentedon Apr 6, 2020
Can confirm that I'm running into this issue as well. Haven't gotten a chance to debug it
fix build: ekalinin/nodeenv#253
Collect resource types also for non-preferred API version (#67)
ekalinin commentedon Apr 7, 2020
Hi,
Thanks for report, but it looks like a network issue.
Just tested:
adithyabsk commentedon Apr 7, 2020
@ekalinin you're likely right. Something upstream must have been down as my CI build process started working again. This can likely be closed.
milind-shakya-sp commentedon Apr 7, 2020
Closing this. Looks like it was network issues.