trufflesuite / truffle-init

Initializer for example Truffle projects
3 stars 11 forks source link

Switching to request library that supports the proxy environment variable #11

Closed micahriggan closed 6 years ago

micahriggan commented 6 years ago

The native nodejs https.request method doesn't follow proxy environment variables. This is referenced by https://github.com/nodejs/node/issues/8381

The request library does support these environment variables.

These environment variables are commonly used at the corporation I work for, so not supporting them is a barrier to entry for many corporate developers.

micahriggan commented 6 years ago

This should close https://github.com/trufflesuite/truffle-init/issues/1

gnidan commented 6 years ago

Closing this in favor of the sister PR in truffle-box

Abhinav93 commented 6 years ago

Still unable to truffle init behind a proxy getting the following error Error: Error making request. Please check the format of the requested resource: https://raw.githubusercontent.com/truffle-box/metacoin-box/master/truffle.js at Request._callback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:311386:23) at self.callback (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:283165:22) at emitOne (events.js:115:13) at Request.emit (events.js:210:7) at Request.onRequestError (/usr/local/lib/node_modules/truffle/build/cli.bundled.js:283857:8) at emitOne (events.js:115:13) at ClientRequest.emit (events.js:210:7) at TLSSocket.socketErrorListener (_http_client.js:401:9) at emitOne (events.js:115:13) at TLSSocket.emit (events.js:210:7) node setup works perfectly fine Also all the enviroment variable are set properly in the /etc/enviroment and everythong works fine behind proxy except this