{"id":"315142f2801c3a11","repo":"jackc/pgx","slug":"cannot-get-param-d-w","errorCode":null,"errorMessage":"cannot get param %d: %w","messagePattern":"cannot get param (.+?): %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgproto3/bind.go","lineNumber":219,"sourceCode":"\t\tDestinationPortal    string\n\t\tPreparedStatement    string\n\t\tParameterFormatCodes []int16\n\t\tParameters           []map[string]string\n\t\tResultFormatCodes    []int16\n\t}\n\terr := json.Unmarshal(data, &msg)\n\tif err != nil {\n\t\treturn err\n\t}\n\tdst.DestinationPortal = msg.DestinationPortal\n\tdst.PreparedStatement = msg.PreparedStatement\n\tdst.ParameterFormatCodes = msg.ParameterFormatCodes\n\tdst.Parameters = make([][]byte, len(msg.Parameters))\n\tdst.ResultFormatCodes = msg.ResultFormatCodes\n\tfor n, parameter := range msg.Parameters {\n\t\tdst.Parameters[n], err = getValueFromJSON(parameter)\n\t\tif err != nil {\n\t\t\treturn fmt.Errorf(\"cannot get param %d: %w\", n, err)\n\t\t}\n\t}\n\treturn nil\n}\n","sourceCodeStart":201,"sourceCodeEnd":224,"githubUrl":"https://github.com/jackc/pgx/blob/ec1a0befd22592cffffdeeb0a50311b506372f4c/pgproto3/bind.go#L201-L224","documentation":"Error \"cannot get param %d: %w\" thrown in jackc/pgx.","triggerScenarios":"Thrown at pgproto3/bind.go:219 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}