Closed DerEnderKeks closed 7 years ago
What version of thinky/rethinkdbdash are you using here?
+-- thinky@2.3.8
| +-- rethinkdbdash@2.3.27
I have the same problem. It's a HUGE pain to find where the source is...
Same problem
Can you provide a script that reproduce this error?
I can't because I don't know what exactly causes this exception and where it's caused. The line number in the stacktrace leads to this:
deasync.loopWhile(() => { // this line
return !configSaved;
});
And this line is not doing anything with thinky directly but it waits for the result of the query above it.
If you look at the code in rethinkdbdash, it's an error returned by RethinkDB. Can you just print the error there? There error should come with a backtrace of what query failed.
Where exactly is this error message supposed to be? The stacktrace I posted above is everything it logs.
/usr/src/app/node_modules/rethinkdbdash/lib/connection.js line 395
I get the same error after some IDLE time
alright, after finding out that I forgot to add an error handler in one of my database functions I now got the exact error message:
msg: 'Cannot perform read: primary replica for shard ["", +inf) not available',
message: 'Cannot perform read: primary replica for shard ["", +inf) not available in:\nr.table("config").delete()\n^^^^^^^^^^^^^^^^^^^^^^^^^^\n',
frames: [],
name: 'ReqlOpFailedError'
Hello,
I'm currently trying to dockerize Yanius but there somehow is a problem with the rethink stuff.
It always throws an exception during startup and I have no idea why and where it comes from as the node stacktrace is quite useless... If I start it in my normal environment everything works just fine (same node, rethink and npm module versions).
Can anyone tell me where that
ReqlRuntimeError
comes from and maybe how to fix it? Sourcecode is available in the previously mentioned repository. (It's a mess. I know.)