{"record":{"id":"1cb623dd51fc8c32","repo":"hyperledger/fabric","slug":"received-proposal-response-with-nil-response","errorCode":null,"errorMessage":"received proposal response with nil response","messagePattern":"received proposal response with nil response","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/peer/lifecycle/chaincode/approveformyorg.go","lineNumber":198,"sourceCode":"\t\t}\n\t\tresponses = append(responses, proposalResponse)\n\t}\n\n\tif len(responses) == 0 {\n\t\t// this should only be empty due to a programming bug\n\t\treturn errors.New(\"no proposal responses received\")\n\t}\n\n\t// all responses will be checked when the signed transaction is created.\n\t// for now, just set this so we check the first response's status\n\tproposalResponse := responses[0]\n\n\tif proposalResponse == nil {\n\t\treturn errors.New(\"received nil proposal response\")\n\t}\n\n\tif proposalResponse.Response == nil {\n\t\treturn errors.Errorf(\"received proposal response with nil response\")\n\t}\n\n\tif proposalResponse.Response.Status != int32(cb.Status_SUCCESS) {\n\t\treturn errors.Errorf(\"proposal failed with status: %d - %s\", proposalResponse.Response.Status, proposalResponse.Response.Message)\n\t}\n\t// assemble a signed transaction (it's an Envelope message)\n\tenv, err := protoutil.CreateSignedTx(proposal, a.Signer, responses...)\n\tif err != nil {\n\t\treturn errors.WithMessage(err, \"failed to create signed transaction\")\n\t}\n\tvar dg *chaincode.DeliverGroup\n\tvar ctx context.Context\n\tif a.Input.WaitForEvent {\n\t\tvar cancelFunc context.CancelFunc\n\t\tctx, cancelFunc = context.WithTimeout(context.Background(), a.Input.WaitForEventTimeout)\n\t\tdefer cancelFunc()\n\n\t\tdg = chaincode.NewDeliverGroup(","sourceCodeStart":180,"sourceCodeEnd":216,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/internal/peer/lifecycle/chaincode/approveformyorg.go#L180-L216","documentation":"Defensive check in Approve: the proposal response is non-nil but its embedded Response field is nil, so its status/message cannot be inspected. This is a structurally invalid endorser reply; the command aborts rather than misreporting the endorsement outcome.","triggerScenarios":"Thrown at internal/peer/lifecycle/chaincode/approveformyorg.go:198 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Inspect peer logs for the endorsement processing error that yielded a malformed response","Retry the approval; if persistent, verify peer/CLI version compatibility","Confirm network stability between CLI and endorser (gRPC stream integrity)"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2736b63f8fd5932511d56fe68b7039d15977f7f6","analyzedAt":"2026-09-04T08:52:36.465Z","contentChangedAt":"2026-09-04T08:52:36.465Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}