{"record":{"id":"06d32dd72ec952c3","repo":"istio/istio","slug":"unable-to-marshal-bootstrap-in-envoy-config-dump","errorCode":null,"errorMessage":"unable to marshal bootstrap in Envoy config dump: %v","messagePattern":"unable to marshal bootstrap in Envoy config dump: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"istioctl/pkg/writer/envoy/configdump/configdump.go","lineNumber":66,"sourceCode":"\tif err != nil {\n\t\treturn fmt.Errorf(\"error unmarshalling config dump response from Envoy: %v\", err)\n\t}\n\tc.configDump = w\n\treturn nil\n}\n\n// PrintBootstrapDump prints just the bootstrap config dump to the ConfigWriter stdout\nfunc (c *ConfigWriter) PrintBootstrapDump(outputFormat string) error {\n\tif c.configDump == nil {\n\t\treturn fmt.Errorf(\"config writer has not been primed\")\n\t}\n\tbootstrapDump, err := c.configDump.GetBootstrapConfigDump()\n\tif err != nil {\n\t\treturn err\n\t}\n\tout, err := protomarshal.ToJSONWithIndent(bootstrapDump, \"    \")\n\tif err != nil {\n\t\treturn fmt.Errorf(\"unable to marshal bootstrap in Envoy config dump: %v\", err)\n\t}\n\tif outputFormat == \"yaml\" {\n\t\toutbyte, err := yaml.JSONToYAML([]byte(out))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tout = string(outbyte)\n\t}\n\tfmt.Fprintln(c.Stdout, out)\n\treturn nil\n}\n\n// PrintSecretDump prints just the secret config dump to the ConfigWriter stdout\nfunc (c *ConfigWriter) PrintSecretDump(outputFormat string) error {\n\tif c.configDump == nil {\n\t\treturn fmt.Errorf(\"config writer has not been primed\")\n\t}\n\tsecretDump, err := c.configDump.GetSecretConfigDump()","sourceCodeStart":48,"sourceCodeEnd":84,"githubUrl":"https://github.com/istio/istio/blob/8dc789c5cf17517c64e3c36cb3288230f149dfae/istioctl/pkg/writer/envoy/configdump/configdump.go#L48-L84","documentation":"Error \"unable to marshal bootstrap in Envoy config dump: %v\" thrown in istio/istio.","triggerScenarios":"Thrown at istioctl/pkg/writer/envoy/configdump/configdump.go:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8dc789c5cf17517c64e3c36cb3288230f149dfae","analyzedAt":"2026-08-15T15:16:55.434Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}