denodrivers / denodrivers/postgres

`ConnectionError` - Session terminated by database without notifying the library

Open
#409 1 comment 0 reactions 0 assignees View on GitHub
bug help wanted
Dominant language
TypeScript
Stars
655
Forks
97
PR merge metrics
No merged PRs in 30d

Description

Using a cloud managed DB often terminates sessions without notifying the library. This causes `ConnectionError` because the library was not notified of the cancelled connection.

There is a `TODO` comment mentioned that this will be fixed.
> ... will be removed once we move to async handling of messages by the frontend ...
> https://github.com/denodrivers/postgres/blob/main/connection/connection.ts#L167-L171

Is there a workaround in the meantime?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.