Downloading esp32 3.3.5 to Arduino platform fails.

DickyOZ
Posts: 21
Joined: Sun Aug 03, 2025 9:40 am

Downloading esp32 3.3.5 to Arduino platform fails.

Postby DickyOZ » Fri Dec 19, 2025 10:56 pm

Downloading esp32 3.3.5 to Arduino platform fails with the following error:
Downloading packages
esp32:esp32-arduino-libs@idf-release_v5.5-9bb7aa84-v2
esp32:esp-x32@2511
esp32:xtensa-esp-elf-gdb@16.3_20250913
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)
My internet connection is 100/100Mbs up/ down so I don't think the problem is at this end.
I have tried to update a few times but the problem persists.
Any ideas?

DickyOZ
Posts: 21
Joined: Sun Aug 03, 2025 9:40 am

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby DickyOZ » Fri Dec 19, 2025 11:40 pm

Problem fixed! The network connection needed a longer timeout. The esp32 boards file is rapidly growing in size :D

PawelM1980
Posts: 1
Joined: Sat Dec 20, 2025 2:43 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby PawelM1980 » Sat Dec 20, 2025 2:46 pm

Same problem...where to change timeout? :?

surfino-ita
Posts: 1
Joined: Tue Dec 16, 2025 1:18 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby surfino-ita » Sat Dec 20, 2025 6:01 pm

add the follow lines on:
C:\Users\your_windows_user_\.arduinoIDE\arduino-cli.yaml

Code: Select all

network:
  connection_timeout: 300s
Save the file ad restart Arduino IDE

stanw4321
Posts: 1
Joined: Sat Dec 20, 2025 6:07 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby stanw4321 » Sat Dec 20, 2025 6:12 pm

Hoping you can help. I just went to a 100mbs and started to get the same message. I was able to get my desktops to increase the timeout but my laptop refuses to behave. How did you increase the timeout? I used the arduino-cli to increase but its still timing out. arduino-cli config set network.connection_timeout 900s

Thanks, Stan

DickyOZ
Posts: 21
Joined: Sun Aug 03, 2025 9:40 am

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby DickyOZ » Tue Dec 23, 2025 10:08 am

These are the instructions for fixing the timeout on the Arduino PC IDE:
The timeout at which Arduino IDE cancels a download is configurable. You should be able to work around this problem by configuring a higher timeout value. I'll provide instructions you can follow to do that:

Select File > Quit from the Arduino IDE menus if it is running.
All Arduino IDE windows will close.
Open the file at the following path in any text editor:

C:\Users\<username>\.arduinoIDE\arduino-cli.yaml

(where <username> is your Windows username)
Add the following content to the arduino-cli.yaml file (or replace the existing content if equivalent content is already present in the file):

network:
connection_timeout: 300s

ⓘ I arbitrarily chose a timeout value of 300 s. You can adjust this as needed.
Save the file.
Start Arduino IDE.

Now try installing/updating the "esp32" boards platform again, just the same as you did before. Hopefully this time it will be successful.

The Arduino CLI developers are tracking the need to adjust the timeout system to avoid spurious failures when the default configuration is in place here:

NeGenxt
Posts: 1
Joined: Fri Dec 26, 2025 3:56 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby NeGenxt » Fri Dec 26, 2025 4:09 pm

Thanks DickyOZ.

I was also facing the same issue. After your clear instruction I was able to overcome the issue.
Also if anyone facing issue follow those step. If your network/internet is slow then it would be better if you increase the duration from 300s to 10,000s or more.

My download speed was 5Mbs. So, I went with 10,000sec.
Last edited by NeGenxt on Fri Dec 26, 2025 4:11 pm, edited 1 time in total.

sth007
Posts: 1
Joined: Sat Jan 10, 2026 1:15 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby sth007 » Sat Jan 10, 2026 1:17 pm

I tried to implement the suggested changes

Code: Select all

network:
connection_timeout: 300s
which extended the installation progress, but it still aborted in the end. I simply tried again the next day and it went through immediately. For anyone experiencing the same problem, just try again in the next few days. The server seems to be busy, which is the reason for the problem.

kstein@wolke7.net
Posts: 1
Joined: Sat Jan 10, 2026 5:33 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby kstein@wolke7.net » Sat Jan 10, 2026 5:51 pm

...and for the MacOS users: /Users/<username>/.arduinoIDE/arduino-cli.yaml

Strange, that this setting is missing in the installed/default config.

Grimnyr
Posts: 1
Joined: Mon Feb 16, 2026 2:57 pm

Re: Downloading esp32 3.3.5 to Arduino platform fails.

Postby Grimnyr » Mon Feb 16, 2026 3:00 pm

add the follow lines on:
C:\Users\your_windows_user_\.arduinoIDE\arduino-cli.yaml

Code: Select all

network:
  connection_timeout: 300s
Save the file ad restart Arduino IDE

Who is online

Users browsing this forum: Google [Bot], PetalBot and 19 guests