Hello Team,
I am facing an issue when trying to build a project in VS Code using PlatformIO. The error message I am encountering is as follows:
Processing esp32dev (platform: espressif32@6.2.0; board: esp32dev; framework: espidf)
Platform Manager: Installing espressif32 @ 6.2.0
HTTPClientError:
Despite running the same command via terminal, the issue remains unresolved.
In addition to this, whenever I try to open PlatformIO Home, it gets stuck on the loading screen, and eventually, a timeout error pops up.
I would greatly appreciate any guidance or suggestions on resolving this issue.
Thank you in advance.
The error message seems to be truncated.
Can you please post the whole error message using pre-formatted text ?
Also, please let us know the content of your platformio.ini
and a minimal sketch to reproduce the error.
Hello,
Thank you for your quick response.
Here is the complete error message
Steps to reproduce:
The problem occurs when I try to build my project in Visual Studio Code, and it shows the above message.
Also when I open vs code it shows the timeout error while setting up the the PlatformIO.
Here is the content of my platformio.ini:
[env:esp32dev]
platform = espressif32@6.2.0
board = esp32dev
framework = espidf
monitor_speed = 115200
Thank you!
Please try platform = eapressif32 @ 6.9.0
in your platformio ini.
Hello,
I tried with espressif@6.9.0 but the same error is coming.
It looks like something is blocking your Internet connection so that the platform cannot be downloaded.
Can you help to install this platform manually?
cc @ivankravets : Do you have an Idea how to solve this?
1 Like
Do you use a proxy? Could you run in the terminal? Do you see the HTML output?
curl https://registry.platformio.org/platforms/platformio/espressif32
Hello,
Thank you for your response.
I am getting following error with above command:
curl: (60) SSL certificate problem: self signed certificate in certificate chain
Please ask Google how to fix your system issue by having the input above.
Hello,
I went through the document provided for ssl certs and it gave me html output but then again I try in vs code but still HTTPCLientError pops up.
Please guide me further.
Have you tried to reboot your machine? If you made a system environment changes, you need to apply them in a new SH session.
Hello,
My issue is resolved and here are the steps to solve this:
1)Add you ssl certificate in
sudo cp /path/to/Securixxxx.pem /usr/local/share/ca-certificates/SecurityAppl.crt
“.crt” allows the system to recognize and process it correctly.
-
sudo update-ca-certificates
-
Run pio run manually on your linux terminal.
-
Build in vs code by restarting it.
Thank you so much for your help as by your suggestion only I came to know that
curl PlatformIO Registry
was not working on my system.
1 Like