{"id":"3225a3b876a1b87a","repo":"docker/cli","slug":"endpoint-q-is-not-of-type-endpointmeta","errorCode":null,"errorMessage":"endpoint %q is not of type EndpointMeta","messagePattern":"endpoint %q is not of type EndpointMeta","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/context/docker/load.go","lineNumber":160,"sourceCode":"// named pipe (Windows), or file-descriptor.\nfunc isSocket(addr string) bool {\n\tswitch proto, _, _ := strings.Cut(addr, \"://\"); proto {\n\tcase \"unix\", \"npipe\", \"fd\":\n\t\treturn true\n\tdefault:\n\t\treturn false\n\t}\n}\n\n// EndpointFromContext parses a context docker endpoint metadata into a typed EndpointMeta structure\nfunc EndpointFromContext(metadata store.Metadata) (EndpointMeta, error) {\n\tep, ok := metadata.Endpoints[DockerEndpoint]\n\tif !ok {\n\t\treturn EndpointMeta{}, errors.New(\"cannot find docker endpoint in context\")\n\t}\n\ttyped, ok := ep.(EndpointMeta)\n\tif !ok {\n\t\treturn EndpointMeta{}, fmt.Errorf(\"endpoint %q is not of type EndpointMeta\", DockerEndpoint)\n\t}\n\treturn typed, nil\n}\n","sourceCodeStart":142,"sourceCodeEnd":164,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/context/docker/load.go#L142-L164","documentation":"Error \"endpoint %q is not of type EndpointMeta\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/context/docker/load.go:160 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}