{"record":{"id":"6daf85d0254223b6","repo":"hasura/graphql-engine","slug":"error-while-creating-http-client-with-tls-configur","errorCode":null,"errorMessage":"error while creating http client with TLS configuration %w","messagePattern":"error while creating http client with TLS configuration %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/cli.go","lineNumber":688,"sourceCode":"\terr = ec.readConfig()\n\tif err != nil {\n\t\treturn errors.E(op, fmt.Errorf(\"cannot read config: %w\", err))\n\t}\n\n\t// initialize HTTP client\n\t// CLI uses a common http client defined in internal/httpc.Client\n\t// get TLS Config\n\ttlsConfig, err := httpc.GenerateTLSConfig(ec.Config.CAPath, ec.Config.InsecureSkipTLSVerify)\n\tif err != nil || tlsConfig == nil {\n\t\treturn errors.E(op, stderrors.New(\"error while getting TLS config\"))\n\t}\n\n\t// create a net/http.Client with TLS Config\n\tstandardHttpClient, err := httpc.NewHttpClientWithTLSConfig(tlsConfig)\n\tif err != nil || standardHttpClient == nil {\n\t\treturn errors.E(\n\t\t\top,\n\t\t\tfmt.Errorf(\"error while creating http client with TLS configuration %w\", err),\n\t\t)\n\t}\n\n\t// create httpc.Client\n\thttpClient, err := httpc.New(standardHttpClient, ec.Config.Endpoint, ec.HGEHeaders)\n\tif err != nil || httpClient == nil {\n\t\treturn errors.E(op, err)\n\t}\n\n\tec.Config.HTTPClient = httpClient\n\n\terr = util.GetServerStatus(ec.Config.GetVersionEndpoint(), ec.Config.HTTPClient)\n\tif err != nil {\n\t\tec.Logger.Error(\"connecting to graphql-engine server failed\")\n\t\tec.Logger.Info(\"possible reasons:\")\n\t\tec.Logger.Info(\n\t\t\t\"1) Provided root endpoint of graphql-engine server is wrong. Verify endpoint key in config.yaml or/and value of --endpoint flag\",\n\t\t)","sourceCodeStart":670,"sourceCodeEnd":706,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/cli.go#L670-L706","documentation":"Generic catch-all for unsupported features encountered while resolving type predicates / boolean expressions. It carries a free-form message describing exactly which feature is unsupported in the current configuration or engine version.","triggerScenarios":"Using predicate features (advanced filter expressions, specific relationship types, aggregation filters) that the current metadata-resolve version or data connector combination doesn't support yet.","commonSituations":"Adopting newer metadata syntax on an older engine build; connectors that only implement a subset of the boolean expression spec; feature-flagged functionality not enabled.","solutions":["Read the message text to identify the exact unsupported feature","Upgrade the engine/CLI to a version that supports the feature","Restructure the query to avoid the unsupported construct (e.g. use a command or client-side filtering)","Check feature flags / experimental config required to enable the feature"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"// Feature-detect before using advanced predicate constructs\nif (!supportsFeature('nested-filter-expressions')) {\n  throw new Error('Feature unsupported; falling back to simpler query');\n}","typeGuard":"const isSupported = (features, name) => features.has(name);","tryCatchPattern":"try { resolve(); } catch (e) { if (e?.code === 'UnsupportedFeature') useSimplerQuery(e.message); else throw e; }","preventionTips":["Pin engine versions and read release notes for predicate feature support","Gate new metadata syntax behind version checks"],"tags":["unsupported-feature","metadata","boolean-expression"],"backgroundTag":"unsupported-feature-error","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}