horizon
horizon copied to clipboard
Unhanded rejection ReqlRuntimeError: Connection is closed in r.db("app_name_internal")...
Following the horizon getting started guide
npm install -g horizon
hz init example_app
hz serve --dev
with RethinkDB 2.3.0 installed
leads to
~/D/j/example_app $ hz serve --dev
App available at http://127.0.0.1:8181
RethinkDB
├── Admin interface: http://localhost:49464
└── Drivers can connect to port 49463
Starting Horizon...
Unhandled rejection ReqlRuntimeError: Connection is closed in:
r.db("example_app_internal").table("groups").changes({"squash": true, "includeInitial": true, "includeStates": true, "includeTypes": true})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at ReqlRuntimeError.ReqlError [as constructor] (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/errors.js:23:13)
at new ReqlRuntimeError (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/errors.js:90:51)
at mkErr (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/util.js:177:10)
at Feed.IterableResult._addResponse (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/cursor.js:75:27)
at TcpConnection.<anonymous> (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:360:22)
at TcpConnection.cancel (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/util.js:26:16)
at TcpConnection.cancel (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:783:43)
at wrappedCb (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:270:17)
at tryCatcher (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/util.js:26:23)
at Promise.successAdapter (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/nodeify.js:23:30)
at Promise._settlePromiseAt (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/promise.js:579:21)
at Promise._settlePromises (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:15:14)
at tryOnImmediate (timers.js:534:15)
... that error many times
Horizon failed to start after 30 seconds
Try running hz serve again with the --debug flag
Running with RethinkDB 2.3.2 leads to
~/D/j/example_app $ hz serve --dev
App available at http://127.0.0.1:8181
RethinkDB
├── Admin interface: http://localhost:53531
└── Drivers can connect to port 53530
Starting Horizon...
Unhandled rejection ReqlRuntimeError: Connection is closed in:
r.db("rethinkdb").table("table_config").filter({"db": "example_app"}).pluck("name", "indexes").changes({"squash": true, "includeInitial": true, "includeStates": true, "includeTypes": true})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
at ReqlRuntimeError.ReqlError [as constructor] (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/errors.js:23:13)
at new ReqlRuntimeError (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/errors.js:90:51)
at mkErr (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/util.js:177:10)
at Feed.IterableResult._addResponse (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/cursor.js:75:27)
at TcpConnection.<anonymous> (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:360:22)
at TcpConnection.cancel (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/util.js:26:16)
at TcpConnection.cancel (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:783:43)
at wrappedCb (/usr/local/lib/node_modules/horizon/node_modules/rethinkdb/net.js:270:17)
at tryCatcher (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/util.js:26:23)
at Promise.successAdapter (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/nodeify.js:23:30)
at Promise._settlePromiseAt (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/promise.js:579:21)
at Promise._settlePromises (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.Async.drainQueues [as _onImmediate] (/usr/local/lib/node_modules/horizon/node_modules/bluebird/js/main/async.js:15:14)
at tryOnImmediate (timers.js:534:15)
Horizon ready for connections 🌄
rerunning that command with RethinkDB 2.3.2, the issue doesn't reappear.
If you're reporting a bug please include the following:
- Server version: RethinkDB 2.3.0 and 2.3.2
- Client version: 1.0.1