-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
pg-protocol throws an uncatchable error when it loses the connection to PostgreSQL server via TLS #2820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
node-postgres/packages/pg/lib/connection.js Lines 47 to 62 in 9a95ee7
It’s not uncatchable. You need to add an |
Canonical issue for improving error ergonomics: #2439 (comment) |
Hi @charmander I'm pretty sure I've added the
and, all queries are emitted though Do you mean the error thrown from the
It produces the error:
|
Oh, sorry that I missed this information. I'll try again with Update: |
When the PostgreSQL server gets terminated, an uncatchable error is thrown from pg-protocol with following message
It seems that the errors in the on stream data listener here is not handled properly?
node-postgres/packages/pg-protocol/src/index.ts
Line 7 in 9a95ee7
The text was updated successfully, but these errors were encountered: