{"record":{"id":"9ef62f6ca5cd04ae","repo":"istio/istio","slug":"invalid-proxy-type-s","errorCode":null,"errorMessage":"invalid proxy Type: %s","messagePattern":"invalid proxy Type: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pilot/cmd/pilot-agent/app/cmd.go","lineNumber":237,"sourceCode":"\tif len(domain) == 0 {\n\t\tdomain = podNamespace + \".svc.\" + constants.DefaultClusterLocalDomain\n\t}\n\treturn domain\n}\n\nfunc configureLogging(_ *cobra.Command, _ []string) error {\n\tif err := log.Configure(loggingOptions); err != nil {\n\t\treturn err\n\t}\n\treturn nil\n}\n\nfunc initProxy(args []string) error {\n\tproxyArgs.Type = model.SidecarProxy\n\tif len(args) > 0 {\n\t\tproxyArgs.Type = model.NodeType(args[0])\n\t\tif !model.IsApplicationNodeType(proxyArgs.Type) {\n\t\t\treturn fmt.Errorf(\"invalid proxy Type: %s\", string(proxyArgs.Type))\n\t\t}\n\t}\n\n\tpodIP, _ := netip.ParseAddr(options.InstanceIPVar.Get()) // protobuf encoding of IP_ADDRESS type\n\tif podIP.IsValid() {\n\t\t// The first one must be the pod ip as we pick the first ip as pod ip in istiod.\n\t\tproxyArgs.IPAddresses = []string{podIP.String()}\n\t}\n\n\t// Obtain all the IPs from the node\n\tproxyAddrs := make([]string, 0)\n\tif ipAddrs, ok := network.GetPrivateIPs(context.Background()); ok {\n\t\tproxyAddrs = append(proxyAddrs, ipAddrs...)\n\t}\n\n\t// No IP addresses provided, append 127.0.0.1 for ipv4 and ::1 for ipv6\n\tif len(proxyAddrs) == 0 {\n\t\tproxyAddrs = append(proxyAddrs, localHostIPv4, localHostIPv6)","sourceCodeStart":219,"sourceCodeEnd":255,"githubUrl":"https://github.com/istio/istio/blob/8dc789c5cf17517c64e3c36cb3288230f149dfae/pilot/cmd/pilot-agent/app/cmd.go#L219-L255","documentation":"Error \"invalid proxy Type: %s\" thrown in istio/istio.","triggerScenarios":"Thrown at pilot/cmd/pilot-agent/app/cmd.go:237 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"}