truffle migrate / truffle obtain behind (corporate) proxy
See original GitHub issueIssue
Truffle cannot fetch solc from solc-bin behind a proxy even when setting HTTP_PROXY and HTTPS_PROXY env variables.
I propose to:
- add proxy option inside truffle-config OR
- add --proxy as option when running truffle in general OR
- add --proxy as option when running truffle command (migrate/compile/obtain) OR
- acknowledge HTTP_PROXY and HTTPS_PROXY env variables
Steps to Reproduce
- Connect to a network behind proxy
- Change solc version inside truffle-config.js to a non-default version (e.g 0.4.24 on truffle v5) 3.1 Execute truffle migrate/compile --> error 3.2 Execute truffle obtain --solc=<version> (e.g 0.4.24) --> no error but does not download
Expected Behavior
solc is downloaded and migrations are executed with correct version
Actual Results
command fails
Environment
- Operating System: Windows 10
- Ethereum client: ganache-cli
- Truffle version (
truffle version): 5.0.6 - node version (
node --version): 10.15.2 - npm version (
npm --version): 6.4.1
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Cannot run truffle behind proxy? - Ethereum Stack Exchange
I've installed truffle and related software on my office PC. I've set the proxy server for node.js. The truffle init got the following...
Read more >Configuration - Truffle Suite
Specifies which networks are available for deployment during migrations, as well as specific transaction parameters when interacting with each network (such as ...
Read more >Truffle proxy issue behind corporate network - Stack Overflow
I have installed solidity plugin and truffle in VS Code. truffle unbox or truffle compile throws the following error.
Read more >Using with Truffle - OpenZeppelin Docs
This package adds functions to your Truffle migrations and tests so you can deploy and upgrade proxies for your contracts. Usage from Truffle...
Read more >A brand new website interface for an even better experience!
truffle migrate / truffle obtain behind (corporate) proxy.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This problem still happens
Definitely we should support that! Will look into fixing this. Thanks for raising the issue!