{"record":{"id":"546c177f1ae7c829","repo":"hyperledger/fabric","slug":"no-proposal-responses-received","errorCode":null,"errorMessage":"no proposal responses received","messagePattern":"no proposal responses received","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/peer/lifecycle/chaincode/approveformyorg.go","lineNumber":186,"sourceCode":"\t}\n\n\tsignedProposal, err := signProposal(proposal, a.Signer)\n\tif err != nil {\n\t\treturn errors.WithMessage(err, \"failed to create signed proposal\")\n\t}\n\n\tvar responses []*pb.ProposalResponse\n\tfor _, endorser := range a.EndorserClients {\n\t\tproposalResponse, err := endorser.ProcessProposal(context.Background(), signedProposal)\n\t\tif err != nil {\n\t\t\treturn errors.WithMessage(err, \"failed to endorse proposal\")\n\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)","sourceCodeStart":168,"sourceCodeEnd":204,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/internal/peer/lifecycle/chaincode/approveformyorg.go#L168-L204","documentation":"Defensive check in Approve: after iterating all endorser clients, the responses slice is empty. The code comment notes this \"should only be empty due to a programming bug\" — EndorserClients was initialized with zero entries — so this is an internal invariant failure, not an expected runtime condition.","triggerScenarios":"Thrown at internal/peer/lifecycle/chaincode/approveformyorg.go:186 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Ensure Init (setPeerClients) succeeded and populated EndorserClients with at least one peer before Approve runs","Check that -peerAddresses was supplied and passed validation","If it persists, treat as a bug in command initialization and report with the full command invocation"],"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-08T15:18:49.778Z"}