Hello, I've trying to install ESP32 library but there is an error message that keeps popping up. I've searched the whole community to look for a similar problem but could not find one.
Downloading packages
esp32:xtensa-esp32-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp32s2-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp32s3-elf-gcc@esp-2021r2-patch5-8.4.0
esp32:xtensa-esp-elf-gdb@11.2_20220823
Failed to install platform: 'esp32:esp32:2.0.11'.
Error: 2 UNKNOWN: Get "https://objects.githubusercontent.com/github-production-release-asset-2e65be/140236854/5b1b060a-c4a0-4e08-8b0d-356e90fc80c9?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20231029%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20231029T195655Z&X-Amz-Expires=300&X-Amz-Signature=b783b598ea3cc6cd4fbae9fc053992b57a8e136ce4313976e88c6c0aca5047ca&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=140236854&response-content-disposition=attachment%3B%20filename%3Dxtensa-esp-elf-gdb-11.2_20220823-x86_64-w64-mingw32.zip&response-content-type=application%2Foctet-stream": read tcp 192.168.10.211:63403->185.199.111.133:443: wsarecv: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Hi @electricalman. This problem might be caused by your firewall or some other network security system (e.g., proxy or VPN) interfering with Arduino IDE's ability to access the Internet.
Are you aware of anything special about the configuration of the network you connect to the Internet through that might interfere with Arduino IDE's access to the Internet?
Thanks for responding. Actually I'm sharing the data connection from my phone hotspot. I've tried and turned off my windows firewall nothing changes. And about the VPN and proxy server, I don't use any. Please what do you suggest? The project is running out of time.
Unfortunately I don't have a good solution for you. We have received a couple other reports of problems like this. Meanwhile many thousands of other people use the Arduino IDE Boards Manager without any problems. Some of the people who reported experiencing it found that it was fixed after correcting their firewall settings, while others didn't report finding a solution. So it seems to be caused by something unusual that is specific to your environment.
I can suggest that you try Arduino IDE 1.8.19. It might be that it will be possible to install the ESP32 boards platform using that version of the Arduino IDE. The Arduino IDE 1.8.19 download links are listed here:
You can have both Arduino IDE 2.x and 1.8.19 installed on your computer at the same time, so you don't need to uninstall Arduino IDE 2.x before installing 1.8.19. Arduino IDE 2.x will recognize any platforms you install using Arduino IDE 1.8.19, so if you are able to successfully install the ESP32 boards platform using Arduino IDE 1.8.19, you could then switch back to using Arduino IDE 2.x again if you prefer it to 1.8.19.
I disabled all the firewall and restarted my computer, opened the IDE again and clicked on the install button and it worked!
Thanks so much for your support.
You are welcome. I'm glad you were able to make an installation successfully. Thanks for taking the time to post an update.
If you haven't already, I recommend you now enable your firewall once again.
Even though you have made the installation you needed immediately already, you may want to adjust the configuration of the firewall so that it won't interfere with Arduino IDE downloading other files from the Internet. The reason is that there is a good chance you will want to install updates of the ESP32 boards platform, other boards platforms, libraries via Library Manager, and IDE updates in the future.