Cannot install esp32 on Arduino IDE


Hi everyone,

I am trying to download esp32 on my company's computer, but it just cannot process it. I have the correct URLs in preferences, and I even cleared the app data, but nothing seems to work. It keeps showing

Failed to install platform: 'esp32:esp32:3.0.1'.
Error: 2 UNKNOWN: stream error: stream ID 1; NO_ERROR; received from peer

Does anyone know how to solve this? Thank you.

Looks like a networking problem: do you have full internet access from that PC, or does your company require you to use a proxy?

2 Likes

2 posts were split to a new topic: Platform installation fails: "proxyconnect tcp: dial tcp: lookup _: no such host:"

I have the same issue:
Failed to install platform: 'esp32:esp32:3.0.3'.
Error: 2 UNKNOWN: stream error: stream ID 1; NO_ERROR; received from peer
The package download fails on my Windows 11 laptop, but works on my Windows 10 Laptop, same location, same network, no proxy. Also, my Windows 11 laptop can download the Arduino AVR Boards package with no issue. It appears that some of the ESP32 packages are loaded properly:
Downloading packages
esp32:esp32-arduino-libs@idf-release_v5.1-dc859c1e67
esp32:esp-x32@2302
esp32:esp-xs2@2302
esp32:esp-xs3@2302
esp32:xtensa-esp-elf-gdb@12.1_20231023
esp32:esp-rv32@2302
esp32:riscv32-esp-elf-gdb@12.1_20231023
esp32:openocd-esp32@v0.12.0-esp32-20240318
esp32:esptool_py@4.6
esp32:mkspiffs@0.2.3
Failed to install platform: 'esp32:esp32:3.0.3'.
Error: 2 UNKNOWN: stream error: stream ID 1; NO_ERROR; received from peer
This is very frustrating...

1 Like

I'm not sure, but it looks like the issue is not in downloading the files, It appears in the installation of the core module. I have allowed the Arduino IDE executable in Windows Defender to communicate across all network types (Domain, Private and Public). How does it communicate when it starts the installation process?

This problem still exists 11-Nov-2024. Tried upgrading to IDE 2.3.3. All libraries and boards updated properly except the ESP32 boards from espressif.

In Preferences
Additional Board Manager URLs
you have there --
https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

If you download an older version of the IDE (2.2.1 worked for me) and try to install the esp32 board package it should solve the problem.

4 Likes

Also in my case the IDE 2.2.1 version solve the problem.

3 Likes

@lambrios

After that you can upgrade to 2.3.4 if so desired; it will not affect the installation of the board packages.

2 Likes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.