hjespers / teslams

Tesla node.js apps and javascript libraries using Tesla's HTTP interfaces
BSD 3-Clause "New" or "Revised" License
417 stars 106 forks source link

timeout connecting to server #113

Closed tekkkon closed 7 years ago

tekkkon commented 7 years ago

keep getting timeout errors with the example, anyone has the issue?

Error parsing response to oauth token request { Error: connect ETIMEDOUT xx.xx.xx.xx:443 at Object.exports._errnoException (util.js:1026:11) at exports._exceptionWithHostPort (util.js:1049:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1085:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: 'xx.xx.xx.xx', port: 443 }

tekkkon commented 7 years ago

https://teslamotorsclub.com/tmc/threads/model-s-rest-api.13410/page-96

this may help answer the questions

wga22 commented 7 years ago

You can set a proxy via the command line.

export http_proxy="http://184.175.106.139:80/"

good list of proxies are here: https://www.us-proxy.org/

I am working on a js to pull these, and set it, because they seem to go down regularly. Feel free to take:

https://github.com/wga22/nodejs/blob/master/vacuum/proxylist.js