IDE 2.3.7 now gives Error: 4 DEADLINE_EXCEEDED:

Thanks, work for me.

After installing IDE 2.3.7 I got the same error. I set Timeout up to 1200s - not working.
Then I re-installed the IDE 2.3.6 - now the ESP32 update worked.
Then again Update to IDE 2.3.7
Maybe it's a workaround only for my system...

es cierto , yo lo puuse en 600 segundos y recien instalo, fue porque la empresa de internet tenia problemas de estabilidad de internet. pero si no les da aumentele dependiendo el caso , por ejemplo el mio estaba por completar la descargar pero salia ese error

Setting connection_timeout to -1s removes the limit at all, apparently
Anyway, why this limit even a thing? The package in question is around 1Gb. So, it requires the package to be downloaded at 133Mbit/sec. This is an absurd limit. Also, not everyone has broadband connection. Just remove it completely and let adsl-loosers like as to suffer like we usually do.

Also, looking at the variable's name makes me think it might me a bug: for some reason is not resetting timeout counter on data receive for some reason anymore.

As a newbie to Arduino and microcontrollers, I want to apologize in advance if I am on the wrong thread.

I kept getting this error while attempting to install the SAMD board into the IDE software. I tried both the Arduino and Adafruit SAMD's with the same result. Editing the arduino-cli.yaml file to set a different time limit accomplished nothing. I went as far as setting the limit to 6000s with no change in result. In fact, the error occurred at pretty much the same place of the process whether the limit was 600, 6000, or the default. The only way I could get this to work was to DELETE IDE 2.3.7 and install an older version, which seemed to work fine.

Again, just a newbie, but sounds more like a bug in the "new and improved" version of the software more than a change to a default setting...

Hi @tapanesrot.

It is possible you made a mistake when adjusting the configuration. Perhaps you didn't restart Arduino IDE?

It is true that the 600s timeout value I chose arbitrarily is not sufficient for some users with a slower Internet connection. However, even when the timeout configuration is insufficient, you should definitely notice that it affects the duration of the download process before the spurious termination. If you are not noticing any difference between the default and 6000, this indicates that your changes to the configuration file are not having an effect.

Anyway, I'm glad you were able to find a solution in the end!

Yes, it is a bug. The developers have already fixed the bug in the Arduino CLI tool that handles boards platform installations for Arduino IDE:

However, that fix was made after the time of the 2.3.7 release of Arduino IDE, so this is why we still encounter the bug when using Arduino IDE. The fix will only be available to Arduino IDE users after the developers have updated the version of Arduino CLI used by Arduino IDE and make a new release of Arduino IDE.

In fact I did exit then restart the IDE. As for adjusting the configuration, the arduino-cli.yaml after I added the adjustment (in bold). There may be a mistake, like maybe I entered the code in the wrong place. But for a beginner, if the added text needed to be in a more specific place, the directions weren't quite specific enough.

board_manager:
additional_urls:
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
network:
connection timeout: 6000s
directories:
builtin:
libraries: C:\Users\Bob N Lorraine\AppData\Local\Arduino15\libraries
data: c:\Users\Bob N Lorraine\AppData\Local\Arduino15
user: c:\Users\Bob N Lorraine\Documents\Arduino
locale: en

There is one problem for certain. The key is named connection_timeout (note the underscore character _ between connection and timeout). You instead wrote it connection timeout (note the space character between connection and timeout.

It also appears that you didn't indent the connection_timeout key. This file is written in the YAML language, which uses indentation to indicate hierarchical structure. connection_timeout is a key of the network mapping, so must be indented relative to the network key.

This is how your file should look:

board_manager:
    additional_urls:
        - https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
network:
    connection_timeout: 6000s
directories:
    builtin:
        libraries: C:\Users\Bob N Lorraine\AppData\Local\Arduino15\libraries
    data: c:\Users\Bob N Lorraine\AppData\Local\Arduino15
    user: c:\Users\Bob N Lorraine\Documents\Arduino
locale: en

No, the location of the added lines is perfectly fine.

Well, thank you for the info. Again, newbie here, so I wasn't aware that there was a different language with a hierarchical structure. Again, thanks!

board_manager:
additional_urls:
- https://adafruit.github.io/arduino-board-index/package_adafruit_index.json
network:
connection_timeout: 6000s

i onley added this part and it worked fin THX

Thanks for this, had same issue :+1:

I had this exact problem, some reason adjusting network timeout was not helping. Im using a windows 11 and arduino IDE 2.3.7
Solution was first download "Arduino Release v3.3.7 based on ESP-IDF v5.5.2" sources and thes use get.exe from sources to get rest of files and then copy files to correct loation. Those files are about 8GB.

How do i check if my arduino-cli.yaml config file is valid?
when my yaml file is like this;

board_manager:
    additional_urls: []
network:
    connection_timeout: 600s

my arduino ide gets stuck and doesnt open for some reason

network:
    connection_timeout: 600s

does work tho

For me value 1200 - is working

thnx