"Failed to fetch available toolchains." on Visual Studio Code

Hi.

I wanna evaluate nRF52840-DK. However, when I tried to install Toolchain on Visual Studio Code, a message "Failed to fetch available toolchains." is displayed.

"nRF Connect for VS Code Extension Pack" is installed.
I clicked "Install Toolchain" bottun in the WELCOM view, and then "Failed to fetch available toolchains." is displayed.

I reffered to the bellow URL to do that.
https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/installation.html

I know a similar Q&A (the bellow URL), but don't know the cause. 
https://devzone.nordicsemi.com/f/nordic-q-a/93616/toolchain-manager-failed-to-download-toolchain-index-file

My enviroment is the following.
Windows10 64bit
Visual Studio Code ver 1.85.1


Do you know any hints about this?
Thank you.

Parents
  • Hello, 

    Are you behind a firewall or VPN, i.e. company network that has limited access to certain pages e.g. GitHub?

    Kind regards,
    Øyvind

  • Forgot to ask, but can you please provide the logs as well?

  • Thank you for your reply.

    Yes, my computer is in our company network and behind the firewall.
    Could you tell me applications or domains that I have to allow their connections?

    In a log file "2-nRF Connect.log", the following message is shown.

    -----

    [16:31:54] nrfutil-toolchain-manager: Error: Failed to retrieve toolchain-index

    Caused by:
    0: Failed to download index
    1: Get request failed
    2: developer.nordicsemi.com/.../index-windows-x86_64.json: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer
    3: invalid peer certificate: UnknownIssuer
    -----

    And, I tried to install "nRF Connect for Desktop" and click the install button of "Toolchain Manager", then the bellow popup was displayed. 



    Thank you.

Reply
  • Thank you for your reply.

    Yes, my computer is in our company network and behind the firewall.
    Could you tell me applications or domains that I have to allow their connections?

    In a log file "2-nRF Connect.log", the following message is shown.

    -----

    [16:31:54] nrfutil-toolchain-manager: Error: Failed to retrieve toolchain-index

    Caused by:
    0: Failed to download index
    1: Get request failed
    2: developer.nordicsemi.com/.../index-windows-x86_64.json: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer
    3: invalid peer certificate: UnknownIssuer
    -----

    And, I tried to install "nRF Connect for Desktop" and click the install button of "Toolchain Manager", then the bellow popup was displayed. 



    Thank you.

Children
  • Based on this information it sounds like the company firewall is blocking access to our servers. Are you able to confirm with your IT department? 

    Are you able to test on another open network? E.g. a home network or similar?

    Kind regards,
    Øyvind

  • OK, I'll try it.
    Thank you for your help.

  • Hi, i am afraid the same issue still appears.


    I come across the same issue and I used home network.

    I installed the SDK v2.5.1 from within VS code.

    But when I click "install toolchain", I get 

    [13:53:56] nrfutil-toolchain-manager: Error: Failed to retrieve toolchain-index

    Caused by:
        0: Failed to download index
        1: Get request failed
        2: developer.nordicsemi.com/.../index-windows-x86_64.json: Connection Failed: tls connection init failed: invalid peer certificate: UnknownIssuer
        3: invalid peer certificate: UnknownIssuer

    when I open "nRF Connect for Desktop", clicking 'open'

    I get:

    it doesn't show the newer SDK versions.

    Any idea is appreciated.

  • Hi.

    I still have the problem...
    but I found I can install the older version despite of company network.
    So, I concluded the netwoek environment is not related in this case.

    I installed the following on "nRF Connect for Desktop".
    toolchain manager v1.2.5
    SDK v1.9.1

    I can test some sample projects for now.
    It is tentative, but I'm glad this is helpful for you.


  • Hi Ryo, thanks for the response.
    I solved this issue with the similar workaround. By using a older version of toolchain manager in 'nRF connect for Desktop':

    After clicking 'open', i can see all the SDK versions and install the latest version v2.5.1.