The IDE seems to be looking for library files behind a proxy host that doesn't exist.
It seems to be searching for MaccaroniandCheese as a proxy host, butwthat is a name of my main home SSID!.
I think I must have in error typed it in fof something and now its stuck as a proxy host name under Network Preferences (if I erase it, it won't go away for good.,. and I get this when adding a library;:
Downloading ArduinoMqttClient@0.1.6
ArduinoMqttClient@0.1.6
Failed to install library: ArduinoMqttClient:0.1.6.
Error: 13 INTERNAL: Can't download library: Get "https://downloads.arduino.cc/libraries/github.com/arduino-libraries/ArduinoMqttClient-0.1.6.zip ": proxyconnect tcp: dial tcp: lookup maccaroniandcheese: no such host
b707
November 7, 2022, 9:07pm
2
you can download it here
and install manually as described in Arduino manual
Which version of the IDE?
Which operating system?
Hi @dbbarron .
This is a known bug:
opened 07:29AM - 18 Nov 21 UTC
closed 02:53PM - 27 Jun 23 UTC
topic: code
type: imperfection
topic: gRPC
### Describe the problem
If you set the `network.proxy` key (e.g., via the "*… *Network**" tab of the Arduino IDE preferences dialog), then during a later IDE session try to disable the proxy preference, Arduino CLI continues to attempt to connect to the Internet via a proxy.
### To reproduce
1. Select **File > Preferences...** from the Arduino IDE menus.
1. Select the "**Network**" tab from the "**Preferences**" dialog.
1. Select the radio button next to "**Manual proxy configuration**".
1. Click the "**OK**" button.
1. Select **File > Quit** from the Arduino IDE menus.
1. Start Arduino IDE.
1. Select **File > Preferences...** from the Arduino IDE menus.
1. Select the "**Network**" tab from the "**Preferences**" dialog.
1. Select the radio button next to "**No proxy**".
1. Click the "**OK**" button.
1. Select **File > Quit** from the Arduino IDE menus.
1. Start Arduino IDE.
1. Select **File > Preferences...** from the Arduino IDE menus.
1. Select the "**Network**" tab from the "**Preferences**" dialog.
🐛 The "**Manual proxy configuration**" radio button is selected.
🐛 When Arduino CLI attempts to download resources from the Internet, an error like "`proxyconnect tcp: dial tcp: lookup _: no such host`" occurs.
### Expected behavior
It is possible to disable the proxy after enabling it.
### Arduino CLI version
0.29.0
### Operating system
- Linux
- Windows
### Operating system version
- Windows 11
- Debian Bullseye
### Additional context
The `network.proxy` key in `~/.arduinoIDE/arduino-cli.yaml` is set to `http://_/`
<a name="workaround"></a>
#### Workaround
1. Select **File > Quit** from the Arduino IDE menus if it is running.
1. Use any text editor to open the file at the following path:
- **Windows:**
```text
C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
```
(where `<username>` is your Windows username)
- **Linux:**
```text
~/.arduinoIDE/arduino-cli.yaml
```
❗ The `~/.arduinoIDE/` folder may be hidden by default in your file manager and terminal.
- **macOS:**
```text
~/.arduinoIDE/arduino-cli.yaml
```
❗ The `~/.arduinoIDE/` folder is hidden by default. You can make it visible by pressing the <kbd>**Command**</kbd>+<kbd>**Shift**</kbd>+<kbd>**.**</kbd> keyboard shortcut.
1. Delete the lines from the file that have this format:
```yaml
network:
proxy: <some proxy URL>
user_agent_ext: daemon
```
1. Save the file.
1. Start the Arduino IDE.
You should now find that "**No proxy**" is selected in the "**Network**" tab of the "**Preferences**" dialog.
#### Additional reports
- https://github.com/arduino/arduino-ide/issues/1363
- https://forum.arduino.cc/t/cannot-install-library-with-arduino-ide-2-0-3/1077981
- https://forum.arduino.cc/t/boards-and-libraries-fail-to-load-update/1052539
- https://forum.arduino.cc/t/newbie-unknown-proxy-host-blocking-the-install-of-libraries/1050777
- https://forum.arduino.cc/t/ide-2-0-4-on-win10-shows-no-ports-for-digispark-usb/1083255
- https://forum.arduino.cc/t/json-no-such-file/1119208/10
- https://forum.arduino.cc/t/arduino-ide-2-0-3-can-not-start/1160370
### Issue checklist
- [X] I searched for previous reports in [the issue tracker](https://github.com/arduino/arduino-cli/issues?q=)
- [ ] I verified the problem still occurs when using the [nightly build](https://arduino.github.io/arduino-cli/dev/installation/#nightly-builds)
- [X] My report contains all necessary details
I will share the workaround for this issue:
Select File > Quit from the Arduino IDE menus if it is running.
Use any text editor to open the file at the following path:
Windows: C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
Linux: ~/.arduinoIDE/arduino-cli.yaml
macOS: ~/.arduinoIDE/arduino-cli.yaml
The .arduinoIDE
folder may be hidden by default by your operating system.
Delete the lines from the file that have this format:network:
proxy: http://pippo:pluto@example.com:1234/
user_agent_ext: daemon
Save the file.
Start the Arduino IDE.
You should now find that "No proxy " is selected in the "Network " tab of the "Preferences " dialog.
1 Like
system
Closed
May 7, 2023, 7:18am
5
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.