-
-
Notifications
You must be signed in to change notification settings - Fork 414
Closed
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftopic: gRPCRelated to the gRPC interfaceRelated to the gRPC interfacetype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project
Description
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
- Select File > Preferences... from the Arduino IDE menus.
- Select the "Network" tab from the "Preferences" dialog.
- Select the radio button next to "Manual proxy configuration".
- Click the "OK" button.
- Select File > Quit from the Arduino IDE menus.
- Start Arduino IDE.
- Select File > Preferences... from the Arduino IDE menus.
- Select the "Network" tab from the "Preferences" dialog.
- Select the radio button next to "No proxy".
- Click the "OK" button.
- Select File > Quit from the Arduino IDE menus.
- Start Arduino IDE.
- Select File > Preferences... from the Arduino IDE menus.
- 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://_/
Workaround
- 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:
(where
C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
<username>
is your Windows username) - Linux:
❗ The
~/.arduinoIDE/arduino-cli.yaml
~/.arduinoIDE/
folder may be hidden by default in your file manager and terminal. - macOS:
❗ The
~/.arduinoIDE/arduino-cli.yaml
~/.arduinoIDE/
folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
- Windows:
- Delete the lines from the file that have this format:
network: proxy: <some proxy URL> 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.
Additional reports
- not recoverable PROXY Settings arduino-ide#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
- I searched for previous reports in the issue tracker
- I verified the problem still occurs when using the nightly build
- My report contains all necessary details
per1234
Metadata
Metadata
Assignees
Labels
topic: codeRelated to content of the project itselfRelated to content of the project itselftopic: gRPCRelated to the gRPC interfaceRelated to the gRPC interfacetype: imperfectionPerceived defect in any part of projectPerceived defect in any part of project