Plotly-Node.JS Error: connect ETIMEDOUT

Hello everyone,

i want to run the following sample code:

var plotly = require('plotly')('username','api-key');
var data = [{x:[0,1,2], y:[3,2,1], type: 'bar'}];
var layout = {fileopt : "extend", filename : "nodenodenode"};
plotly.plot(data, layout, function (err, msg) { if (err) return console.log(err); console.log(msg); });

I am using a proxy for development purposes in my company. I already set the paramters, but I get the subsequent error:
Error: connect ETIMEDOUT 35.190.21.88:443 at TCPCONNECTWRAP.afterConnect net.js:1106:14
errorno: ETIMEDOUT
code: ETIMEDOUT
syscall: connect
adress: 35.190.21.88
port 443

Does anybody know how to solve this problem. Thank you,

Boesinga

I know that Plotly uses the requests module to communicate with the Plotly server. I have to configure proxies by setting the environment variables HTTP_PROXY and HTTPS_PROXY. Does anybody know the commands to do this for Plotly?

Thank you,

Boesinga