#697·horizon

Server: connect with rethinkdb as hostname fails

Author: intellixCreated Jul 30, 2016Updated May 27, 2017
Labelsbugserver

Server version: 2.0.0

So I'm using Docker and linking rethinkdb into my horizon container.

hz serve --dev --connect rethinkdb:28015 --secure=no --bind all --allow-anonymous=yes /usr/app throws:

error: Connection to RethinkDB terminated: ReqlDriverError: Could not connect to 28015:28015.
connect EINVAL 0.0.109.111:28015 - Local (0.0.0.0:0)

hz serve --dev --connect rdb:28015 --secure=no --bind all --allow-anonymous=yes /usr/app works fine though

Dumping the rdb_uri from url.parse(connect) I get:

Url {
  protocol: 'rethinkdb:',
  slashes: null,
  auth: null,
  host: '28015',
  port: null,
  hostname: '28015',
  hash: null,
  search: null,
  query: null,
  pathname: null,
  path: null,
  href: 'rethinkdb:28015' }