Skip to content

Timeout fires too quickly while downloading esp32-arduino-libs #94

@0x3b29

Description

@0x3b29

Extension version

1.0.7

OS & version
Win10

Describe the bug
After changing to an ESP32 version that is not currently installed, the build process will download the missing stuff. But for me, the download is quite slow (which is ok, I can wait) but then a timeout occurs.

To Reproduce
Steps to reproduce the behavior:

  1. Select any repo
  2. Select an ESP32 version that is not currently installed
  3. Compile
  4. See timeout error (maybe if the server is currently slow)

Expected behavior
All the files download successfully

Outputs

esp32:esp32-arduino-libs@idf-release_v5.4-858a988d-v1 220.61 MiB / 337.73 MiB 65.32% 00m31s esp32:esp32-arduino-libs@idf-release_v5.4-858a988d-v1 context deadline exceeded (Client.Timeout or context cancellation while reading body) Fehler beim Herunterladen des Werkzeugs esp32:esp32-arduino-libs@idf-release_v5.4-858a988d-v1... Fehler beim Initialisieren der Instanz: Fehler beim Laden der Hardware-Plattform: Lade erforderliches Tool esp32:esp-rv32@2411: Fehler beim Installieren des Werkzeugs esp32:esp-rv32@2411: context deadline exceeded (Client.Timeout or context cancellation while reading body) Fehler beim Initialisieren der Instanz: Fehler beim Laden der Hardware-Plattform: Lade erforderliches Tool esp32:esp-x32@2411: Fehler beim Installieren des Werkzeugs esp32:esp-x32@2411: net/http: request canceled (Client.Timeout or context cancellation while reading body) Fehler beim Initialisieren der Instanz: Fehler beim Laden der Hardware-Plattform: Lade erforderliches Tool esp32:esp32-arduino-libs@idf-release_v5.4-858a988d-v1: Fehler beim Installieren des Werkzeugs esp32:esp32-arduino-libs@idf-release_v5.4-858a988d-v1: context deadline exceeded (Client.Timeout or context cancellation while reading body) FQBN: esp32:esp32:esp32 Verwende das Board 'esp32' von der Plattform im Ordner: C:\Users\oli\AppData\Local\Arduino15\internal\esp32_esp32_3.2.1_be7999a0baf43d69 Verwendung des Kerns 'esp32' von Platform im Ordner: C:\Users\oli\AppData\Local\Arduino15\internal\esp32_esp32_3.2.1_be7999a0baf43d69

Additional context
I think it is related to this issue
https://forum.arduino.cc/t/error-during-install-context-deadline-exceeded/1384509
and could be solved with a higher timeout
arduino-cli config set network.connection_timeout 600s
which is also the exact thing that I did to fix the problem locally for me

oli@oli-W7-PC MINGW64 ~/.vscode/extensions/thelastoutpostworkshop.arduino-maker-workshop-1.0.7-win32-x64/arduino_cli/win32 $ ./arduino-cli.exe config set network.connection_timeout 600s

but you need to analyse the cli output, open the correct path and I think the extension should take care of this for less experienced users.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions