{"record":{"id":"b28845c74fd4650a","repo":"larksuite/cli","slug":"exec-provider-response-missing-id-q","errorCode":null,"errorMessage":"exec provider response missing id %q","messagePattern":"exec provider response missing id %q","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/binding/secret_resolve_exec.go","lineNumber":227,"sourceCode":"\n\tif resp.ProtocolVersion != 1 {\n\t\treturn \"\", fmt.Errorf(\"exec provider protocolVersion must be 1, got %d\", resp.ProtocolVersion)\n\t}\n\n\tif refErr, ok := resp.Errors[refID]; ok {\n\t\tmsg := refErr.Message\n\t\tif msg == \"\" {\n\t\t\tmsg = \"unknown error\"\n\t\t}\n\t\treturn \"\", fmt.Errorf(\"exec provider failed for id %q: %s\", refID, msg)\n\t}\n\n\tif resp.Values == nil {\n\t\treturn \"\", fmt.Errorf(\"exec provider response missing 'values'\")\n\t}\n\tvalue, ok := resp.Values[refID]\n\tif !ok {\n\t\treturn \"\", fmt.Errorf(\"exec provider response missing id %q\", refID)\n\t}\n\n\tif str, ok := value.(string); ok {\n\t\treturn str, nil\n\t}\n\tif !jsonOnly {\n\t\tdata, err := json.Marshal(value)\n\t\tif err != nil {\n\t\t\treturn \"\", fmt.Errorf(\"exec provider value for id %q is not JSON-serializable: %w\", refID, err)\n\t\t}\n\t\treturn string(data), nil\n\t}\n\treturn \"\", fmt.Errorf(\"exec provider value for id %q is not a string\", refID)\n}\n","sourceCodeStart":209,"sourceCodeEnd":242,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/internal/binding/secret_resolve_exec.go#L209-L242","documentation":"Fails when the exec provider's values map exists but contains no entry for the requested refID. The provider must return a value for every requested reference id; the missing key indicates the provider could not supply that secret without reporting an error.","triggerScenarios":"Thrown at internal/binding/secret_resolve_exec.go:227 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Register the secret under the requested id in the provider, or correct the refID used in bindings"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}