When i try to initialize a project I run into the following problem:
Installing toolchain-xtensa package:
Error: [API] Could not connect to PlatformIO Registry Service. Please try later.
I am quite sure the issue is the proxy but, how to set a proxy for the PlatformIO CLI on Windows?
(set http_proxy=http://your_proxy:your_port does not help)
Regards,
Manuel
You can also configure proxies by setting the environment variables HTTP_PROXY
and HTTPS_PROXY
:
$ export HTTP_PROXY="http://10.10.1.10:3128"
$ export HTTPS_PROXY="http://10.10.1.10:1080"
As far as I know that’s the way to go on unix like systems.
But as mentioned for Windows “set http_proxy=http://your_proxy:your_port” should work, but does not.
Upper case is required!
> set HTTP_PROXY="http://10.10.1.10:3128"
> set HTTPS_PROXY="http://10.10.1.10:1080"
See also this thread
To get the PIO IDE in VSCode on Windows 10 to connect to the internet through a proxy I had to set two environment variables for my user.
HTTP_PROXY: http://<username>:<password>@proxy.hs-karlsruhe.de:8888/
HTTPS_PROXY: http://<username>:<password>@proxy.hs-karlsruhe.de:8888/
Important for me (maybe obvious for someone with more knowledge ) was that
don’t include a domain
protocol in front of the username has to be http:// not https://
slash at the end is important
restart computer
Great, that’s the solution.
Thank you very much!
Thank you too! I moved this topic to FAQ