rethinkdbdash icon indicating copy to clipboard operation
rethinkdbdash copied to clipboard

Warning: a promise was created in a handler at lib/pool.js:248:14 but was not returned from it.

Open meenie opened this issue 8 years ago • 6 comments

I'm using thinky#2.3.6 and that pulled down rethinkdbdash#2.3.21. I only ran into this when I started to use the pingInterval option.

Here's the full error:

(node:46024) Warning: a promise was created in a handler at `node_modules/rethinkdbdash/lib/pool.js:248:14` but was not returned from it, see http://goo.gl/rRqMUw
      at new Promise (`./node_modules/rethinkdbdash/node_modules/bluebird/js/release/promise.js:77:14`)

To fix it, I put in return statements at the line specified above, and also on line: 321. Not sure that is the correct fix though, so I haven't created a PR.

meenie avatar Sep 12 '16 18:09 meenie

Fixed in 2.3.22

neumino avatar Sep 14 '16 02:09 neumino

Hi @neumino,

There is still some un-returned promise (such as here) - Which throw many warning when toStream is used.

nopnop avatar Sep 14 '16 08:09 nopnop

@neumino Your fix didn't fix it fully. Pool.prototype._expandBuffer() needs to return something as well. The PR I had open did actually fix it.

meenie avatar Sep 14 '16 16:09 meenie

@neumino Just bumping this up again. Need to re-open this issue.

meenie avatar Sep 19 '16 19:09 meenie

Can you send a PR?

neumino avatar Sep 20 '16 04:09 neumino

@neumino This is the PR I originally had: https://github.com/neumino/rethinkdbdash/pull/286

meenie avatar Sep 20 '16 04:09 meenie