{"record":{"id":"3bdcd90e23ca5902","repo":"SigNoz/signoz","slug":"couldn-t-query-for-deployment-info-error-w","errorCode":null,"errorMessage":"couldn't query for deployment info: error: %w","messagePattern":"couldn't query for deployment info: error: %w","errorType":"http","errorClass":"basemodel.ApiError","httpStatus":500,"severity":"error","filePath":"ee/query-service/app/api/cloudIntegrations.go","lineNumber":167,"sourceCode":"\treturn cloudIntegrationServiceAccount, nil\n}\n\nfunc (ah *APIHandler) getIngestionUrlAndSigNozAPIUrl(ctx context.Context, licenseKey string) (\n\tstring, *basemodel.ApiError,\n) {\n\t// TODO: remove this struct from here\n\ttype deploymentResponse struct {\n\t\tName        string `json:\"name\"`\n\t\tClusterInfo struct {\n\t\t\tRegion struct {\n\t\t\t\tDNS string `json:\"dns\"`\n\t\t\t} `json:\"region\"`\n\t\t} `json:\"cluster\"`\n\t}\n\n\trespBytes, err := ah.Signoz.Zeus.GetDeployment(ctx, licenseKey)\n\tif err != nil {\n\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't query for deployment info: error: %w\", err,\n\t\t))\n\t}\n\n\tresp := new(deploymentResponse)\n\n\terr = json.Unmarshal(respBytes, resp)\n\tif err != nil {\n\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't unmarshal deployment info response: error: %w\", err,\n\t\t))\n\t}\n\n\tregionDns := resp.ClusterInfo.Region.DNS\n\tdeploymentName := resp.Name\n\n\tif len(regionDns) < 1 || len(deploymentName) < 1 {\n\t\t// Fail early if actual response structure and expectation here ever diverge","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/ee/query-service/app/api/cloudIntegrations.go#L149-L185","documentation":"Thrown when ah.Signoz.Zeus.GetDeployment fails while resolving the ingestion/API URLs for a license key. Zeus is SigNoz's cloud control plane; this call fetches deployment metadata (region DNS, deployment name) for the given license. Failure means the outbound call to the cloud errored (auth, network, or upstream status).","triggerScenarios":"Calling CloudIntegrationsGenerateConnectionParams with a license key for which the Zeus deployment lookup fails: invalid/expired license, cloud gateway unreachable, TLS/proxy issues, or upstream 5xx.","commonSituations":"Expired or wrong license key, egress firewall blocking the SigNoz cloud, DNS problems, or a cloud-side incident.","solutions":["Check the wrapped error for HTTP status / auth hints","Validate the license key is active and correct for this deployment","Verify egress connectivity from query-service to the SigNoz cloud gateway","Retry after transient network or upstream issues resolve"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"Retry with backoff on transient network/upstream failures; fail fast with a clear message on auth/license errors.","preventionTips":["Keep the license key valid and monitored","Ensure egress to the SigNoz cloud gateway is allowed","Wrap cloud calls with timeout + retry in automation"],"tags":["license","cloud-integrations","network","upstream-api"],"backgroundTag":"upstream-api-request-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}