You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the platformio update command fails when used behind a proxy, even when $http_proxy & friends are properly configured. I belief this is because the internet_on function in util.py tries to make a direct socket connection and barfs when it hits the proxy
Steps to Reproduce
Install platformio on a computer that is connected to the internet via a proxy
Install some libraries, boards, etc. (platformio install doesn't check the internet_on function, so it works as expected)
Run platformio update. Every package shows "off-line" as the status and never gets updated (unless you uninstall it and reinstall)
Actual Results
Every package shows as [Off-line]
Expected Results
[Up-to-date] or whatever it says when packages are out of date (and ideally it would update stuff that was old)
Replacing the direct socket stuff with urllib2 as shown in the example above seems to do the right thing on my end. Plus I think it fixes any future issue with ipv6 compatibility :)
The text was updated successfully, but these errors were encountered:
Configuration
Operating system:
OSX 10.11.6
PlatformIO Version (
platformio --version
):3.4.1
Description of problem
the
platformio update
command fails when used behind a proxy, even when $http_proxy & friends are properly configured. I belief this is because the internet_on function in util.py tries to make a direct socket connection and barfs when it hits the proxySteps to Reproduce
platformio install
doesn't check the internet_on function, so it works as expected)platformio update
. Every package shows "off-line" as the status and never gets updated (unless you uninstall it and reinstall)Actual Results
Every package shows as [Off-line]
Expected Results
[Up-to-date] or whatever it says when packages are out of date (and ideally it would update stuff that was old)
If problems with PlatformIO Build System:
Source file to reproduce issue:
Additional info
Replacing the direct socket stuff with urllib2 as shown in the example above seems to do the right thing on my end. Plus I think it fixes any future issue with ipv6 compatibility :)
The text was updated successfully, but these errors were encountered: