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
If I stop postgresql.service and then start program, socket will be undefined.
socket.removeListener('data', data);
^
TypeError: Cannot read property 'removeListener' of undefined
at Socket.onclose (file:///home/dailei/projects/www/packages/api-server/dist/index.js:1172:12)
at Object.onceWrapper (events.js:422:26)
at Socket.emit (events.js:315:20)
at TCP. (net.js:673:12)
I guess nodejs net.connect removes socket.
envinfo
Arch Linux 5.9.13-arch1-1
Nodejs 14.15.3
PostgreSQL 13
postgres 1.0.2 and 2.0.0-beta.2
Bug Report
lib/connection.js:
If I stop postgresql.service and then start program, socket will be undefined.
I guess nodejs net.connect removes socket.
envinfo
Arch Linux 5.9.13-arch1-1
Nodejs 14.15.3
PostgreSQL 13
postgres 1.0.2 and 2.0.0-beta.2
Suggested change
Pull Request: Fix undefined socket if stop postgresql.service at beginning
The text was updated successfully, but these errors were encountered: