{"record":{"id":"8c548b13c17d720c","repo":"hasura/graphql-engine","slug":"failed-to-get-version-from-server-w","errorCode":null,"errorMessage":"failed to get version from server: %w","messagePattern":"failed to get version from server: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/cli.go","lineNumber":879,"sourceCode":"\t\t\tec.Config.GetV1QueryEndpoint(),\n\t\t\tec.HasMetadataV3,\n\t\t\tec.Logger,\n\t\t)\n\t}\n\n\tec.ServerUUID = state.UUID\n\tec.Telemetry.ServerUUID = ec.ServerUUID\n\tec.Logger.Debugf(\"server: uuid: %s\", ec.ServerUUID)\n\t// Set headers required for communicating with HGE\n\treturn nil\n}\n\nfunc (ec *ExecutionContext) checkServerVersion() error {\n\tvar op errors.Op = \"cli.ExecutionContext.checkServerVersion\"\n\n\tv, err := version.FetchServerVersion(ec.Config.GetVersionEndpoint(), ec.Config.HTTPClient)\n\tif err != nil {\n\t\treturn errors.E(op, fmt.Errorf(\"failed to get version from server: %w\", err))\n\t}\n\n\tec.Version.SetServerVersion(v)\n\tec.Telemetry.ServerVersion = ec.Version.GetServerVersion()\n\tisCompatible, reason := ec.Version.CheckCLIServerCompatibility()\n\tec.Logger.Debugf(\n\t\t\"versions: cli: [%s] server: [%s]\",\n\t\tec.Version.GetCLIVersion(),\n\t\tec.Version.GetServerVersion(),\n\t)\n\tec.Logger.Debugf(\"compatibility check: [%v] %v\", isCompatible, reason)\n\n\tif !isCompatible {\n\t\tec.Logger.Warnf(\n\t\t\t\"[cli: %s] [server: %s] version mismatch: %s\",\n\t\t\tec.Version.GetCLIVersion(),\n\t\t\tec.Version.GetServerVersion(),\n\t\t\treason,","sourceCodeStart":861,"sourceCodeEnd":897,"githubUrl":"https://github.com/hasura/graphql-engine/blob/724551b9ae87845594ef0408cff0e50eb6c90dc5/cli/cli.go#L861-L897","documentation":"An object type referenced by its qualified name is not defined. This is the object-type-specific variant: the resolver expected a defined object type (e.g. for a nested model output or command output) and could not find it.","triggerScenarios":"Referencing an object type name as a field's type, command output, or nested structure when no object type with that qualified name is declared.","commonSituations":"Defining command outputs or nested object fields before defining the type itself; type renamed or moved to another namespace; missing type file in the metadata glob.","solutions":["Declare the object type in the metadata with the exact qualified name","Correct the reference to the actual type name/namespace","Verify all type files are included in the metadata source"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"let objs: HashSet<_> = metadata.object_types.keys().collect();\nfor t in referenced_object_types(&metadata) {\n    assert!(objs.contains(&t), \"object type {t} not defined\");\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Define types before referencing them; keep type files in the metadata include glob","Validate references after renames with an automated check"],"tags":["metadata","types","object-type","validation"],"backgroundTag":"undefined-type-reference","analyzedSha":"724551b9ae87845594ef0408cff0e50eb6c90dc5","analyzedAt":"2026-08-28T07:32:55.105Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}