{"record":{"id":"a0d5f5930e71d5dc","repo":"SigNoz/signoz","slug":"couldn-t-search-for-cloudprovider-ingestion-key-s","errorCode":null,"errorMessage":"couldn't search for cloudprovider ingestion key: status: %s, error: %s","messagePattern":"couldn't search for cloudprovider ingestion key: status: (.+?), error: (.+?)","errorType":"http","errorClass":"basemodel.ApiError","httpStatus":500,"severity":"error","filePath":"ee/query-service/app/api/cloudIntegrations.go","lineNumber":235,"sourceCode":"\tcloudProviderKeyName := fmt.Sprintf(\"%s-integration\", cloudProvider)\n\n\t// see if the key already exists\n\tsearchResult, apiErr := requestGateway[ingestionKeysSearchResponse](\n\t\tctx,\n\t\tgatewayUrl,\n\t\tlicenseKey,\n\t\tfmt.Sprintf(\"/v1/workspaces/me/keys/search?name=%s\", cloudProviderKeyName),\n\t\tnil,\n\t)\n\n\tif apiErr != nil {\n\t\treturn \"\", basemodel.WrapApiError(\n\t\t\tapiErr, \"couldn't search for cloudprovider ingestion key\",\n\t\t)\n\t}\n\n\tif searchResult.Status != \"success\" {\n\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't search for cloudprovider ingestion key: status: %s, error: %s\",\n\t\t\tsearchResult.Status, searchResult.Error,\n\t\t))\n\t}\n\n\tfor _, k := range searchResult.Data {\n\t\tif k.Name == cloudProviderKeyName {\n\t\t\tif len(k.Value) < 1 {\n\t\t\t\t// Fail early if actual response structure and expectation here ever diverge\n\t\t\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\t\t\"ingestion keys search response not as expected\",\n\t\t\t\t))\n\t\t\t}\n\n\t\t\treturn k.Value, nil\n\t\t}\n\t}\n","sourceCodeStart":217,"sourceCodeEnd":253,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/ee/query-service/app/api/cloudIntegrations.go#L217-L253","documentation":"The request to search for the cloud-provider ingestion key completed at the HTTP level but the response carried status != \"success\" with an error message. The gateway's own application-level error is surfaced with its status and error text.","triggerScenarios":"getOrCreateCloudProviderIngestionKey performs a key search via the gateway and the gateway responds with an error status: auth failure on the gateway, license/account issues, or internal gateway errors.","commonSituations":"Expired gateway credentials, license limits reached, or a transient cloud-side failure during CloudIntegrationsGenerateConnectionParams.","solutions":["Read the surfaced searchResult.Error text — it states the gateway's reason","Verify gateway authentication material (license/service account) is valid","Retry after transient gateway errors","Contact SigNoz support if the gateway consistently reports errors for a valid license"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":"Inspect searchResult.Status/Error surfaced in the message; retry transient gateway errors, escalate persistent auth/license ones.","preventionTips":["Keep gateway credentials and license current","Alert on repeated non-success gateway statuses"],"tags":["cloud-integrations","upstream-api","ingestion-key","gateway"],"backgroundTag":"upstream-api-request-failed","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}