{"action":"reopened","issue":{"url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/151","repository_url":"https://api.github.com/repos/jaggedsoft/node-binance-api","labels_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/151/labels{/name}","comments_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/151/comments","events_url":"https://api.github.com/repos/jaggedsoft/node-binance-api/issues/151/events","html_url":"https://github.com/jaggedsoft/node-binance-api/issues/151","id":302904023,"number":151,"title":"candlesticks endpoint returning ECONNREFUSED","user":{"login":"dseravalli","id":1758219,"avatar_url":"https://avatars1.githubusercontent.com/u/1758219?v=4","gravatar_id":"","url":"https://api.github.com/users/dseravalli","html_url":"https://github.com/dseravalli","followers_url":"https://api.github.com/users/dseravalli/followers","following_url":"https://api.github.com/users/dseravalli/following{/other_user}","gists_url":"https://api.github.com/users/dseravalli/gists{/gist_id}","starred_url":"https://api.github.com/users/dseravalli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dseravalli/subscriptions","organizations_url":"https://api.github.com/users/dseravalli/orgs","repos_url":"https://api.github.com/users/dseravalli/repos","events_url":"https://api.github.com/users/dseravalli/events{/privacy}","received_events_url":"https://api.github.com/users/dseravalli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-06T23:11:56Z","updated_at":"2018-03-06T23:27:20Z","closed_at":null,"author_association":"NONE","body":"My bot was running fine and all of a sudden I started getting errors from the candlesticks endpoint but it's not returning a standard Binance error that I'm used to (like when I hit a rate limit). It's returning a generic ECONNREFUSED.\r\n\r\nI don't think this is rate limit related though. Immediately after running this test script I can hit the API with Postman and it works fine.  The rate limit is supposed to be 1200/minute and I'm nowhere near that. Also this code worked fine hours ago. Is it possible they've implemented a per second rate limit now?\r\n\r\n\r\nError received:\r\n```console\r\n{ Error: connect ECONNREFUSED 52.193.87.1:443\r\n    at Object._errnoException (util.js:1022:11)\r\n    at _exceptionWithHostPort (util.js:1044:20)\r\n    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1182:14)\r\n  code: 'ECONNREFUSED',\r\n  errno: 'ECONNREFUSED',\r\n  syscall: 'connect',\r\n  address: '52.193.87.1',\r\n  port: 443 }\r\n```\r\n\r\nHere's a test script. For me, any value of `i` over 6 will error every request over 6. So there's always six success and then all errors basically.\r\n\r\n```javascript\r\nconst binanceApi = require('node-binance-api');\r\n\r\nbinanceApi.options({\r\n  APIKEY: process.env.BINANCE_KEY,\r\n  APISECRET: process.env.BINANCE_SECRET,\r\n  useServerTime: true,\r\n  test: true,\r\n});\r\n\r\nfor(let i=0; i < 7; i++) {\r\n  binanceApi.candlesticks('ETHBTC', '1m', (error, ticks) => {\r\n    if (error) {\r\n      console.log(error);\r\n    } else {\r\n      console.log('success');\r\n    }\r\n  });\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"dseravalli"}}