Microchip-MPLAB-Harmony / contentmanager

Harmony 3 Content Manager
https://microchip-mplab-harmony.github.io/contentmanager/
Other
3 stars 2 forks source link

Cant download packages behind proxy #9

Closed pustekuchen91 closed 3 years ago

pustekuchen91 commented 3 years ago

I cant download packages via the conent manager on a fresh installed PC. I think the problem are the proxy settings. The content manager can succesfully connect. But when i start downloading some packages i get the following errors:

grafik

in Harmony3/csp is just a .git folder while the above message is shown. after closing the error the folder dissappears

Debug Log grafik

grafik

Proxy is configured in MPLAB X. maybe the proxy settings are not forwared to the git calls?

as a workaround I've manually cloned all needed repos. Please provide a fix

aethaniel commented 3 years ago

Hi, sorry for late answer. CM is independant from MPLAB X. It is using system settings regarding proxy, etc... Furthermore, it is using only HTTPS for the cloning (port 443).

aethaniel commented 3 years ago

documentation will be updated about the ports in use

pustekuchen91 commented 3 years ago

Hello @aethaniel,

thank you for your response. For the furture it would be the best if not just the system proxy is used. the system proxy (WinHTTP) is not configured in some envoironments for safety reason. instead only the WinInet proxy is configured, which is not used bei CM. Why not add command line parameter for the proxy configuration, which will be passed by MPLAB X.

As a workaround the systme proxy can be configured with netsh winhttp set proxy proxy.myproxy.net:3128

aethaniel commented 3 years ago

I hear you!

I don't know much about system proxy (WinHTTP) not being safe. In fact, my bad, I almost never used any proxy within the last 15 years. Anyway, we will investigate on how to configure it or WinInet one from Java.

Content Manager is used either from within MPLAB X or standalone for users not using MPLAB X. So, I would prefer to have one good solution for both usage, if possible. I will check with my team how we can provide something seamless (I already created a ticket internally for that).

By the way, implementing the proxy support means for us to implement it for windows, Linux and OS X.

Please be patient.