{"id":"64468ab5781058b2","repo":"jackc/pgx","slug":"expected-authenticationgsscontinue-message-but-rec","errorCode":null,"errorMessage":"expected AuthenticationGSSContinue message but received unexpected message %T","messagePattern":"expected AuthenticationGSSContinue message but received unexpected message %T","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgconn/krb5.go","lineNumber":99,"sourceCode":"\t\t}\n\t}\n\treturn nil\n}\n\nfunc (c *PgConn) rxGSSContinue() (*pgproto3.AuthenticationGSSContinue, error) {\n\tmsg, err := c.receiveMessage()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tswitch m := msg.(type) {\n\tcase *pgproto3.AuthenticationGSSContinue:\n\t\treturn m, nil\n\tcase *pgproto3.ErrorResponse:\n\t\treturn nil, ErrorResponseToPgError(m)\n\t}\n\n\treturn nil, fmt.Errorf(\"expected AuthenticationGSSContinue message but received unexpected message %T\", msg)\n}\n","sourceCodeStart":81,"sourceCodeEnd":101,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgconn/krb5.go#L81-L101","documentation":"Error \"expected AuthenticationGSSContinue message but received unexpected message %T\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgconn/krb5.go:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"ec1a0befd22592cffffdeeb0a50311b506372f4c","analyzedAt":"2026-08-04T22:52:11.263Z","schemaVersion":2}