You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node
> db = require('pg-db')();
...
> db.query('SELECT NOW(), (err, rows) => console.log(err, rows) );
undefined
> TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at Object.randomBytes (internal/crypto/random.js:48:11)
at Object.options.source (.../node_modules/rand-token/index.js:60:25)
at generate (.../node_modules/rand-token/index.js:95:29)
at .../node_modules/pg-db/lib/index.js:385:21
at .../node_modules/pg-db/lib/index.js:428:18
at bound (domain.js:396:14)
at runBound (domain.js:409:12)
at .../node_modules/pg/lib/pool.js:84:11
at .../node_modules/generic-pool/lib/generic-pool.js:347:9
Looks like this is the bug in node-rand-token which was fixed in recent versions. Can you update the version of node-rand-token in package.json?
On Node.js v9+
pg-db
throws this error:Looks like this is the bug in
node-rand-token
which was fixed in recent versions. Can you update the version ofnode-rand-token
inpackage.json
?Related issues:
Thanks.
The text was updated successfully, but these errors were encountered: