{"record":{"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":"During GSSAPI authentication the client expected an AuthenticationGSSContinue message but received a different backend message type. The GSS exchange is out of sequence and authentication fails.","triggerScenarios":"Thrown at pgconn/krb5.go:99 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect the %T value to identify the unexpected message","Verify the server's GSSAPI/Kerberos configuration","Ensure the Kerberos client credentials are valid (kinit)","Check for protocol interference from proxies"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"ec1a0befd22592cffffdeeb0a50311b506372f4c","analyzedAt":"2026-08-04T22:52:11.263Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}