Skip to content

Boards Manager doesn't use configured proxy #2785

@nivhg

Description

@nivhg

Describe the problem

The proxy settings configured in the Arduino IDE preferences are not being used for certain operations.

In our environment, proxy is mandatory for HTTPS connection. Our firewall replaces certificates with a false certificate when the proxy is not used.

🐛 Arduino IDE is not using the firewall for installations of boards platforms. This causes the installation to fail.

To reproduce

  1. Install Arduino IDE on a environment where proxy is mandatory.
  2. Use Boards Manager to install any boards platform (e.g., "Arduino megaAVR Boards").

🐛 The installation fails.

Expected behavior

Packages needed by the board are successfully downloaded.

Arduino IDE version

2.3.7-nightly-20250911

Operating system

Windows

Operating system version

11 24H2

Additional context

I have this proxy configuration in %USERPROFILE%\.arduinoIDE\arduino-cli.yaml:

network:
  proxy: http://172.21.178.254:3128/
  user_agent_ext: daemon

The complete file:

arduino-cli.yaml


I see certificate errors in the logs:

2025-09-11 10:54:17 Checking for update
2025-09-11 10:54:17 Error: Error: net::ERR_CERT_AUTHORITY_INVALID
    at SimpleURLLoaderWrapper.<anonymous> (node:electron/js2c/browser_init:2:114352)
    at SimpleURLLoaderWrapper.emit (node:events:519:28)
2025-09-11 10:54:17 2025-09-11T08:54:17.703Z root INFO [hosted-plugin: 4656] PLUGIN_HOST(4656): PluginManagerExtImpl/loadPlugin(C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-builtin-json-language-features\extension\client\dist\node\jsonClientMain)
2025-09-11 10:54:17 2025-09-11T08:54:17.938Z root INFO [hosted-plugin: 4656] PLUGIN_HOST(4656): PluginManagerExtImpl/loadPlugin(C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\plugins\vscode-arduino-api\extension\dist\extension.js)
2025-09-11 10:54:17 2025-09-11T08:54:17.947Z root INFO [hosted-plugin: 4656] calling activation function on Arduino IDE API for VS Code extensions
2025-09-11 10:54:17 2025-09-11T08:54:17.983Z root INFO [43dd9994-0848-4fb6-b9cc-d97597fb5de0] Starting plugins.
2025-09-11 10:54:18 2025-09-11T08:54:18.340Z root INFO [hosted-plugin: 4656] PLUGIN_HOST(4656): PluginManagerExtImpl/loadPlugin(C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\plugins\cortex-debug\extension\dist\extension.js)
2025-09-11 10:54:18 2025-09-11T08:54:18.429Z root INFO [hosted-plugin: 4656] Debug configuration provider has been registered: cortex-debug, trigger: 1
2025-09-11 10:54:18 2025-09-11T08:54:18.430Z root INFO [hosted-plugin: 4656] calling activation function on Cortex-Debug
2025-09-11 10:54:18 2025-09-11T08:54:18.441Z root INFO [hosted-plugin: 4656] GDB server console created
2025-09-11 10:54:18 2025-09-11T08:54:18.478Z root INFO [43dd9994-0848-4fb6-b9cc-d97597fb5de0] Start of 23 plugins: 2196.2 ms [Finished 8.555 s after frontend start]
2025-09-11 10:54:18 2025-09-11T08:54:18.941Z root ERROR ---- !!!SLOW!!! DURATION: search took 1472.752 ms. Args: [{"type":"Updatable"}] ----
2025-09-11 10:54:18 2025-09-11T08:54:18.942Z fwuploader ERROR Error: Process exited with exit code: 1
    at ChildProcess.<anonymous> (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:1104768)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
2025-09-11 10:54:18 2025-09-11T08:54:18.943Z fwuploader ERROR Error: Process exited with exit code: 1
    at ChildProcess.<anonymous> (C:\Users\user\AppData\Local\Programs\arduino-ide\resources\app\lib\backend\main.js:2:1104768)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

Full logs:

2025-09-11_log.log


When using Arduino IDE 2.1.0, Arduino IDE says that Arduino CLI is offline, but it does manage to install the boards platforms.

Additional reports

Related

Issue checklist

  • I searched for previous reports in the issue tracker
  • I verified the problem still occurs when using the latest nightly build
  • My report contains all necessary details

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: CLIRelated to Arduino CLItype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions