VS Code can't clone nrf connect SDK

I am learning development with nrf connect sdk. I installed vs code and in vs code downloaded the nrf connect for vs code extension pack, everything downloads well. On the nrf connect extension menu I go to download toolchain and the toolchain installs okay. but then downloading SDK always throws this error.

The error codes are as follows

 

[00:39:13] Command failed: west init -m https://github.com/nrfconnect/sdk-nrf --mr v2.4.2
Cloning into 'c:\ncs\v2.4.2\.west\manifest-tmp'...
error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
error: 4674 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
FATAL ERROR: command exited with status 128: git clone --branch v2.4.2 https://github.com/nrfconnect/sdk-nrf 'c:\ncs\v2.4.2\.west\manifest-tmp'

Please help I am stuck on this for 2 days now.
Thanks in advance.

  • My internet connection is not that bad it works fine if I clone other repositories without west. But when using west this problem occurs.

    Here are some pictures of my internet connection speed.

    I borrowed a friend's PC and tried with the fiber optic connection which is much faster than my connection but I still got the same problem on his PC. Does someone wants to help out in this regard?

  • Hi Syed, 
    I'm not sure why you get the error. But a quick search pointed me to this video: https://www.youtube.com/watch?v=UFhiF3IzbUw

    The poster has the same issue as yours and he managed to get around by using a different network. 

    In your case it seems that you had the same issue even with a different network ? 

    Could you try to test using nRF Connect for Desktop -> Toolchain manager ? 

    If you do installing manually, at which step did it stop ?

  • I tried with the toolchain manager but no luck, same error occurs. It stops at the  west init -m github.com/.../sdk-nrf --mr v2.4.2 as shown in the video that you just shared.

  • Is it possible that someone else download this for and then make a zip file of the ncs folder and share with me. and I then extract the file in my C:\ folder, will this work with VS code nrf connect extension?

  • This is what I get when trying with toolchain manager from nrf connect desktop.


Related