nxp-mcuxpresso / vscode-for-mcux

Support for NXP Visual Studio Code for MCUXpresso Extension project.
13 stars 0 forks source link

No proxy settings for MCUXpressoInstaller #1

Open yyjdelete opened 1 year ago

yyjdelete commented 1 year ago

Tested with v0.9.68 for Windows I try to set proxy in windows, and Enviroment http_proxy=http://x.x.x.x:xxxx and https_proxy=http://x.x.x.x:xxxx, but none works

DragosMiloiuNXP commented 1 year ago

@yyjdelete, support for proxy will be added in the next version of the MCUXpresso Installer.

Note: Please use this GitHub Issues section to report ambiguities or problems encountered in this documentation. For MCUXpresso for Visual Studio Code extension issues, feedback or search for solutions and ideas please use dedicated Community page (which is now public).

DragosMiloiuNXP commented 11 months ago

A new version of the MCUXpresso Installer is available. Installer includes an auto-update feature (documented here) that will upgrade it to the latest version. If the network configuration blocks the auto-update, please use the download links provided here.

After installer update, in order to use a proxy you have two options:

Additional network troubleshooting details can be found here

yyjdelete commented 11 months ago

Seems proxy settings for axios is not proper set for http proxy, https-proxy-agent should be used for this And maybe socks-proxy-agent for socks/socks4/socks5 proxys

It will try to send something like

GET https://www.nxp.com/lgfiles/updates/mcuxpresso/components.json HTTP/1.1
Accept: application/json, text/plain, */*
User-Agent: axios/1.4.0
Accept-Encoding: gzip, compress, deflate, br
host: www.nxp.com
Connection: close

instead of normal

CONNECT www.nxp.com:443 HTTP/1.1
Host: www.nxp.com:443
User-Agent: axios/1.4.0