neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

ERROR: ReqlDriverError: `run` was called with a closed connection #358

Closed GeoffreyPlitt closed 6 years ago

GeoffreyPlitt commented 6 years ago

Hello,

I have a codebase with hundreds of lines of code that used the old stock driver. I switched to this and things seem to work OK locally. I didn't remove passing "conn" into run() all over the place. I figured this driver will ignore that and run things on the pool, with retries, etc.

But now I'm seeing ReqlDriverError: `run` was called with a closed connection which is odd because I switched to this driver to avoid problems with intermittent connection dropping.

Do I need to pass nothing to run()?