Skip to content

Cannot intall board packages: Error 4 DEADLINE_EXCEEDED: net/http: request canceled. #2849

@timothyparez

Description

@timothyparez

Describe the problem

Whenever I want to download any board packages,
I get something like:

Downloading packages
arduino:dfu-util@0.11.0-arduino5
esp32:esp-rv32@2511
Failed to install platform: 'esp32:esp32:3.3.5'.
Error: 4 DEADLINE_EXCEEDED: net/http: request canceled (Client.Timeout or context cancellation while reading body)

I have added an additional board manager URL:

https://jihulab.com/esp-mirror/espressif/arduino-esp32/-/raw/gh-pages/package_esp32_index_cn.json

But the IDE keeps using the built-in one.

I have modified ~/.arduinoIDE/arduino-cli.yaml to linclude:

network:
  connection_timeout 6000s

But this setting seems to be ignore completely.

I have also copied the ~/.arduinoIDE/arduino-cli.yaml to ``~/.arduino15/arduino-cli.yaml`,
but that also did not change anything.

To reproduce

Install ArduinoIDE and try to install
board packages on a slow network and watch it fail.

Expected behavior

  1. The ArduinoIDE should use the newly added URL
  2. The ArduinoIDE should respect the connection_timeout setting
  3. The ArduinoIDE should not bail out just because network is slow

Arduino IDE version

2.3.7

Operating system

Linux

Operating system version

Ubuntu 25.10

Additional context

The files that fail to download on my system can be downloaded with a web browser
without any issues.

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

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions