typelevel / skunk

A data access library for Scala + Postgres.
https://typelevel.org/skunk/
MIT License
1.59k stars 163 forks source link

Unhandled backend message was encountered: L -> 3318, C -> 57014, #1133

Open matthughes opened 1 month ago

matthughes commented 1 month ago

: ?  An unhandled backend message was encountered
: ?    at /home/runner/work/skunk/skunk/modules/core/shared/src/main/scala/net/protocol/Close.scala:41
: ?
: ?    Message: ErrorResponse(F -> postgres.c, M -> canceling statement due to
: ?             statement timeout, V -> ERROR, L -> 3318, C -> 57014, R ->
: ?             ProcessInterrupts, S -> ERROR
: ?
: ?  This is an implementation error in Skunk.
: ?  Please report a bug with the full contents of this error message.

: skunk.exception.ProtocolError: ErrorResponse(F -> postgres.c, M -> canceling statement due to statement timeout, V -> ERROR, L -> 3318, C -> 57014, R>
matthughes commented 1 month ago
      def close(message: CloseMessage): F[Unit] =
        for {
          _ <- send(message)
          _ <- send(Flush)
          _ <- expect { case CloseComplete => }
        } yield ()

So Skunk went to close the connection but instead of getting a CloseComplete, it got a ErrorResponse?