Skip to content

ConnectionError - Session terminated by database without notifying the library #409

Open
@linhub15

Description

@linhub15

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions