question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

truffle migrate / truffle obtain behind (corporate) proxy

See original GitHub issue

Issue

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

  1. Connect to a network behind proxy
  2. 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
kigawascommented, Jun 11, 2021

Closing for issue maintenance. Please let us know if there’s still a problem and we can reopen.

This problem still happens

2reactions
gnidancommented, Apr 17, 2019

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found