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 at TCPCONNECTWRAP.afterConnect net.js:1106:14
errorno: ETIMEDOUT
syscall: connect
port 443

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


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,