Esp32 core download failure

ive spent the past 3 days trying every possible solution i can think of to install the esp32 core but it keeps failing, everytime i try to download it normally i get this message

Downloading packages
esp32:esp-x32@2511
Failed to install platform: 'esp32:esp32:3.3.6'.
Error: 4 DEADLINE_EXCEEDED: net/http: request canceled (Client.Timeout or context cancellation while reading body)

somebody please help as soon as possible
ive tried: redownloading the ide, downloading the core manually, getting my friend to dowload it and send the file, downloading the core manually a second time, redownloading the ide a second time and deleting the arduino15 file beforehand, getting i friend to download and send a different version of the core

nothing had a result, and if it installs it gives compiling errors

Hi @yahya_abdelrazek. The installation of the "esp32" boards platform failed due to timeout occurred during the download.

The duration of the timeout that causes Arduino IDE to cancel 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:

  1. Select File > Quit from the Arduino IDE menus if it is running.
    All Arduino IDE windows will close.
  2. Open the file at the following path in any text editor:
    • If you are using Linux:
      /home/<username>/.arduinoIDE/arduino-cli.yaml
      
      (where <username> is your Linux username)
      • :red_exclamation_mark: The .arduinoIDE folder may be hidden by default in your file manager and terminal.
    • If you are using macOS:
      /Users/<username>/.arduinoIDE/arduino-cli.yaml
      
      (where <username> is your macOS username)
      • :red_exclamation_mark: The .arduinoIDE folder is hidden by default. You can make it visible by pressing the Command+Shift+. keyboard shortcut.
    • If you are using Windows:
      C:\Users\<username>\.arduinoIDE\arduino-cli.yaml
      
      (where <username> is your Windows username)
  3. 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: 12000s
    
    I arbitrarily chose a timeout value of 12000 seconds. You can adjust this as needed.
  4. Save the file.
  5. 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.

1 Like

it mostly worked but then it did this

Failed to install platform: 'esp32:esp32:3.3.6'.
Error: 13 INTERNAL: Cannot install tool esp32:esp-rv32@2511: testing local archive integrity: testing archive checksum: archive hash differs from hash in index

2.0.17 kullan yeni sürümde sorun var

Hi @osmoztech. Please provide a detailed description of the "problems" you encountered.

Did you encounter the "Client.Timeout or context cancellation while reading body" error reported in post #1?:

If so, did you follow the instructions I provided in post #2?: