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
happens when i start running my server script, node ./server/index.js.
my server script executes select queries as soon as the next tick.
unsure how to try-catch this since its an error within an onready event handler.
error
/project/node_modules/postgres/lib/connection.js:419
callback && callback()
^
TypeError: callback is not a function
at write (/project/node_modules/postgres/lib/connection.js:419:19)
at Array.forEach (<anonymous>)
at onready (/project/node_modules/postgres/lib/connection.js:243:16)
at Object.ReadyForQuery (/project/node_modules/postgres/lib/backend.js:238:5)
at Socket.data (/project/node_modules/postgres/lib/connection.js:297:25)
at Socket.emit (node:events:394:28)
at addChunk (node:internal/streams/readable:312:12)
at readableAddChunk (node:internal/streams/readable:287:9)
at Socket.Readable.push (node:internal/streams/readable:226:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
The text was updated successfully, but these errors were encountered:
env
postgres 2.0.0-beta.7
Ubuntu 20.04.2 LTS
node v16.4.0
npm 7.18.1
context
happens when i start running my server script,
node ./server/index.js
.my server script executes select queries as soon as the next tick.
unsure how to try-catch this since its an error within an
onready
event handler.error
The text was updated successfully, but these errors were encountered: