Closed hayschan closed 4 months ago
Since my initial issue report, I have undertaken further troubleshooting steps to address the build error related to fetching component dependencies for the WS2812 LED Strips example. Despite these efforts, the problem persists. Below is a summary of the additional actions I've taken:
Set Environment Variables via Command Prompt: I attempted to configure the proxy settings by setting the environment variables directly in the command prompt using both HTTP and HTTPS protocols:
set http_proxy=http://127.0.0.1:7890
set https_proxy=https://127.0.0.1:7890
Set Environment Variables via PowerShell: I also tried to configure the proxy settings in PowerShell, ensuring that both HTTP and HTTPS proxies were set:
$env:HTTP_PROXY = "http://127.0.0.1:7890"
$env:HTTPS_PROXY = "https://127.0.0.1:7890"
Proxy Direct Mode: I switched the proxy to direct mode, bypassing the proxy settings to see if a direct connection would solve the issue.
Turning Off Proxy Software: Finally, I completely turned off the proxy software to eliminate any potential interference it might be causing.
I've managed to resolve the issue I was facing with connecting to the ESP component registry due to network restrictions. The solution was to correctly configure both my environment variables and Git to use a proxy.
Please note that my proxy address and port are examples. For example purpose, they will be 127.0.0.1
and 2334
. The port should vary if you use different proxy software. You should the address according to your proxy software configuration that probably.
Here's how I did it, which might be helpful for others encountering similar connectivity issues:
[Environment]::SetEnvironmentVariable("HTTP_PROXY", "http://127.0.0.1:2334", [EnvironmentVariableTarget]::User)
[Environment]::SetEnvironmentVariable("HTTPS_PROXY", "http://127.0.0.1:2334", [EnvironmentVariableTarget]::User)
git config --global http.proxy http://127.0.0.1:2334
git config --global https.proxy http://127.0.0.1:2334
After setting these, make sure to verify the configuration with:
echo $env:HTTP_PROXY
echo $env:HTTPS_PROXY
git config --global --get http.proxy
git config --global --get https.proxy
This approach ensured that both my system environment and Git were correctly using the proxy, allowing me to bypass the network restrictions and successfully connect to the ESP component registry. Hopefully, this solution can help others facing similar issues.
Answers checklist.
IDF version.
v5.1.2
Espressif SoC revision.
ESP32
Operating System used.
Windows
How did you build your project?
VS Code IDE
If you are using Windows, please specify command line type.
PowerShell
Development Kit.
N/A
Steps to reproduce.
Here is the step-by-step process to reproduce the build error I encountered:
D:\GitHub\esp-iot-solution
.cd D:\GitHub\esp-iot-solution\examples\indicator\ws2812_strips
.idf.py build
to start the build process. When attempting to build the project, the process fails with errors related to fetching component dependencies. Specifically, it fails to fetch theled_indicator
andled_strip
components, with error messages indicating a failure to establish a connection tocomponents-file.espressif.com
. Below is an excerpt from the build log:Build Logs.
More Information.
Network Accessibility: To eliminate network issues, I confirmed that my machine could access
components-file.espressif.com
directly using the same shell as above (VS Code IDE)Invoke-WebRequest
. Bothcmake_utilities.json
andled_strip.json
were accessible and returned a status code of 200 OK.