{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4327","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4327/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4327/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4327/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4327","id":84139775,"number":4327,"title":"failure to connect to rethinkdb on remote server","user":{"login":"andela-omesanni","id":7795730,"avatar_url":"https://avatars.githubusercontent.com/u/7795730?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-omesanni","html_url":"https://github.com/andela-omesanni","followers_url":"https://api.github.com/users/andela-omesanni/followers","following_url":"https://api.github.com/users/andela-omesanni/following{/other_user}","gists_url":"https://api.github.com/users/andela-omesanni/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-omesanni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-omesanni/subscriptions","organizations_url":"https://api.github.com/users/andela-omesanni/orgs","repos_url":"https://api.github.com/users/andela-omesanni/repos","events_url":"https://api.github.com/users/andela-omesanni/events{/privacy}","received_events_url":"https://api.github.com/users/andela-omesanni/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-02T18:22:57Z","updated_at":"2015-06-02T18:29:32Z","closed_at":"2015-06-02T18:29:32Z","body":"I have my rethinkdb instance running on Amazon AWS while my web app is running on heroku. Now any time my app's server on heroku runs, it tries to connect to the rethinkdb instance on amazon and every single time i get this error \r\n\r\n    { [RqlDriverError: Server dropped connection with message: \"RethinkDB cluster\r\n    \"]\r\n    name: 'RqlDriverError',\r\n    msg: 'Server dropped connection with message: \"RethinkDB cluster\\n\\u0004\"',\r\n    message: 'Server dropped connection with message: \"RethinkDB cluster\\n\\u0004\"' }\r\nBelow is my rethinkdb config details\r\n   rethinkdb: {\r\n      host: '42.36.36.133',\r\n      port: 29015,\r\n      db: 'sample-db'\r\n    }\r\n\r\nI have no idea what the problem is. I would appreciate any help on this cheers"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/108045333","html_url":"https://github.com/rethinkdb/rethinkdb/issues/4327#issuecomment-108045333","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/4327","id":108045333,"user":{"login":"danielmewes","id":505365,"avatar_url":"https://avatars.githubusercontent.com/u/505365?v=3","gravatar_id":"","url":"https://api.github.com/users/danielmewes","html_url":"https://github.com/danielmewes","followers_url":"https://api.github.com/users/danielmewes/followers","following_url":"https://api.github.com/users/danielmewes/following{/other_user}","gists_url":"https://api.github.com/users/danielmewes/gists{/gist_id}","starred_url":"https://api.github.com/users/danielmewes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielmewes/subscriptions","organizations_url":"https://api.github.com/users/danielmewes/orgs","repos_url":"https://api.github.com/users/danielmewes/repos","events_url":"https://api.github.com/users/danielmewes/events{/privacy}","received_events_url":"https://api.github.com/users/danielmewes/received_events","type":"User","site_admin":false},"created_at":"2015-06-02T18:29:32Z","updated_at":"2015-06-02T18:29:32Z","body":"I think you're just connecting to the wrong port.\r\nThere is a client port and a cluster port. The cluster port (29015 by default) is used for connecting multiple RethinkDB servers with each other. The client port (28015 by default) is for client connections.\r\n\r\nSo I think you just need to change `port: 29015` to `port: 28015`."}}