{"action":"created","issue":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/88","labels_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/88/labels{/name}","comments_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/88/comments","events_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/88/events","html_url":"https://github.com/neumino/rethinkdbdash/issues/88","id":73998393,"number":88,"title":"Failed to connect to localhost:28015","user":{"login":"terrytornado","id":839433,"avatar_url":"https://avatars.githubusercontent.com/u/839433?v=3","gravatar_id":"","url":"https://api.github.com/users/terrytornado","html_url":"https://github.com/terrytornado","followers_url":"https://api.github.com/users/terrytornado/followers","following_url":"https://api.github.com/users/terrytornado/following{/other_user}","gists_url":"https://api.github.com/users/terrytornado/gists{/gist_id}","starred_url":"https://api.github.com/users/terrytornado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrytornado/subscriptions","organizations_url":"https://api.github.com/users/terrytornado/orgs","repos_url":"https://api.github.com/users/terrytornado/repos","events_url":"https://api.github.com/users/terrytornado/events{/privacy}","received_events_url":"https://api.github.com/users/terrytornado/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-07T14:02:14Z","updated_at":"2015-05-08T09:06:25Z","closed_at":null,"body":"Seems the error is not away (2.0.9):\r\n\r\nvar r = require('rethinkdbdash')((\r\n{\r\n    pool: false,\r\n    cursor: true,\r\n    timeout: 30,\r\n    db: 'test',\r\n    servers: [\r\n        {host: '112.168.100.19', port: 28015}\r\n    ]\r\n}));\r\n\r\n\r\nr.connect(function (err, conn) {\r\n    console.log(err);\r\n    console.log(conn);\r\n});\r\n\r\nERROR:\r\n{ [ReqlDriverError: Failed to connect to localhost:28015\r\nFull error:\r\n{\r\n  \"code\": \"ECONNREFUSED\",\r\n  \"errno\": \"ECONNREFUSED\",\r\n  \"syscall\": \"connect\"\r\n}.]\r\n  message: 'Failed to connect to localhost:28015\\nFull error:\\n{\\n  \"code\": \"ECONNREFUSED\",\\n  \"errno\": \"ECONNREFUSED\",\\n  \"syscall\": \"connect\"\\n}.' }\r\nundefined\r\n"},"comment":{"url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/comments/100164930","html_url":"https://github.com/neumino/rethinkdbdash/issues/88#issuecomment-100164930","issue_url":"https://api.github.com/repos/neumino/rethinkdbdash/issues/88","id":100164930,"user":{"login":"terrytornado","id":839433,"avatar_url":"https://avatars.githubusercontent.com/u/839433?v=3","gravatar_id":"","url":"https://api.github.com/users/terrytornado","html_url":"https://github.com/terrytornado","followers_url":"https://api.github.com/users/terrytornado/followers","following_url":"https://api.github.com/users/terrytornado/following{/other_user}","gists_url":"https://api.github.com/users/terrytornado/gists{/gist_id}","starred_url":"https://api.github.com/users/terrytornado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrytornado/subscriptions","organizations_url":"https://api.github.com/users/terrytornado/orgs","repos_url":"https://api.github.com/users/terrytornado/repos","events_url":"https://api.github.com/users/terrytornado/events{/privacy}","received_events_url":"https://api.github.com/users/terrytornado/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T09:06:25Z","updated_at":"2015-05-08T09:06:25Z","body":"Thanks Michael,\r\n\r\nworks now:\r\n\r\n// rethinkdbdash must be executed with '()' by instantiating.\r\nvar r = require('rethinkdbdash')({\r\n        timeout: 60,\r\n        db: 'test',\r\n        servers:[\r\n            {host: '192.168.100.19', port: 28015}\r\n        ],\r\n        buffer: 300,\r\n        max: 3000\r\n    });\r\n\r\n\r\nmodule.exports = {\r\n    rethinkdb: r\r\n};\r\n\r\n"}}