Library installation fails: "proxyconnect tcp: dial tcp: lookup _: no such host"

Continuing the discussion from Json no such file:

Hi @dposit. This error is caused by a misconfiguration of the Arduino IDE proxy settings.

I can help you to fix the configuration, but first I need some information: Does your computer connect to the Internet through a proxy server?

Not sure what proxy server is but we are connected to the Internet through Comcast. Does that answer your question

Not sure what proxy server is but we are connected to the Internet through Comcast. Does that answer your question

If you were using a proxy server you would probably know about it so we'll proceed on the assumption that no proxy configuration is required.

This error is caused by selecting the "Manual proxy configuration" radio button in the Arduino IDE preferences. The solution to the error is to disable the proxy configuration in the IDE. Unfortunately there is a bug in Arduino IDE 2.x that makes it impossible to use the Arduino IDE GUI set the preference back to "No proxy" after you have set it to "Manual proxy configuration". So you must edit the preferences file directly.

I'll provide instructions for doing that:

  1. Select File > Quit from the Arduino IDE menus if it is running.
  2. Use any text editor to open the file at the following path:
    C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
    
  3. Delete the line from the file that looks like this:
      proxy: http://_/
    
  4. Save the file.
  5. Start the Arduino IDE.

Now try installing the "ArduinoJson" library again. You should now no longer encounter that see that "proxyconnect tcp: dial tcp: lookup _: no such host" error.


Please let me know if you have any questions or problems while following those instructions.

1 Like

Dear ptillisch I used your procedure and can confirm that it works great.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.