{"record":{"id":"f7e4e98e37353496","repo":"hyperledger/fabric","slug":"failed-to-obtain-information-for-channel-s","errorCode":null,"errorMessage":"failed to obtain information for Channel %s","messagePattern":"failed to obtain information for Channel (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"core/endorser/support.go","lineNumber":101,"sourceCode":"\t\treturn nil, errors.Errorf(\"failed to look up the ledger for Channel %s\", chid)\n\t}\n\ttx, err := lgr.GetTransactionByID(txID)\n\tif err != nil {\n\t\treturn nil, errors.WithMessage(err, \"GetTransactionByID failed\")\n\t}\n\treturn tx, nil\n}\n\n// GetLedgerHeight returns ledger height for given channelID\nfunc (s *SupportImpl) GetLedgerHeight(channelID string) (uint64, error) {\n\tlgr := s.Peer.GetLedger(channelID)\n\tif lgr == nil {\n\t\treturn 0, errors.Errorf(\"failed to look up the ledger for Channel %s\", channelID)\n\t}\n\n\tinfo, err := lgr.GetBlockchainInfo()\n\tif err != nil {\n\t\treturn 0, errors.Wrap(err, fmt.Sprintf(\"failed to obtain information for Channel %s\", channelID))\n\t}\n\n\treturn info.Height, nil\n}\n\n// IsSysCC returns true if the name matches a system chaincode's\n// system chaincode names are system, chain wide\nfunc (s *SupportImpl) IsSysCC(name string) bool {\n\treturn s.BuiltinSCCs.IsSysCC(name)\n}\n\n// ExecuteLegacyInit a deployment proposal and return the chaincode response\nfunc (s *SupportImpl) ExecuteLegacyInit(txParams *ccprovider.TransactionParams, name, version string, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error) {\n\treturn s.ChaincodeSupport.ExecuteLegacyInit(txParams, name, version, input)\n}\n\n// Execute a proposal and return the chaincode response\nfunc (s *SupportImpl) Execute(txParams *ccprovider.TransactionParams, name string, input *pb.ChaincodeInput) (*pb.Response, *pb.ChaincodeEvent, error) {","sourceCodeStart":83,"sourceCodeEnd":119,"githubUrl":"https://github.com/hyperledger/fabric/blob/2736b63f8fd5932511d56fe68b7039d15977f7f6/core/endorser/support.go#L83-L119","documentation":"Returned by SupportImpl.GetLedgerHeight when the peer has no ledger for the requested channel (Peer.GetLedger returns nil). It fires before any blockchain-info query — the channel is simply not joined/known to this peer.","triggerScenarios":"Thrown at core/endorser/support.go:101 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped error for the underlying ledger store failure","Verify the channel ledger is not under rebuild/reset","Retry after the ledger store recovers"],"exampleFix":null,"handlingStrategy":"retry","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"}