{"record":{"id":"9a20f47540ecd8b5","repo":"SigNoz/signoz","slug":"couldn-t-create-cloudprovider-ingestion-key-statu","errorCode":null,"errorMessage":"couldn't create cloudprovider ingestion key: status: %s, error: %s","messagePattern":"couldn't create cloudprovider ingestion key: status: (.+?), error: (.+?)","errorType":"http","errorClass":"basemodel.ApiError","httpStatus":500,"severity":"error","filePath":"ee/query-service/app/api/cloudIntegrations.go","lineNumber":271,"sourceCode":"\n\tslog.InfoContext(ctx, \"no existing ingestion key found for cloud integration, creating a new one\",\n\t\t\"cloud_provider\", cloudProvider,\n\t)\n\tcreateKeyResult, apiErr := requestGateway[createIngestionKeyResponse](\n\t\tctx, gatewayUrl, licenseKey, \"/v1/workspaces/me/keys\",\n\t\tmap[string]any{\n\t\t\t\"name\": cloudProviderKeyName,\n\t\t\t\"tags\": []string{\"integration\", cloudProvider},\n\t\t},\n\t)\n\tif apiErr != nil {\n\t\treturn \"\", basemodel.WrapApiError(\n\t\t\tapiErr, \"couldn't create cloudprovider ingestion key\",\n\t\t)\n\t}\n\n\tif createKeyResult.Status != \"success\" {\n\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\"couldn't create cloudprovider ingestion key: status: %s, error: %s\",\n\t\t\tcreateKeyResult.Status, createKeyResult.Error,\n\t\t))\n\t}\n\n\tingestionKey := createKeyResult.Data.Value\n\tif len(ingestionKey) < 1 {\n\t\t// Fail early if actual response structure and expectation here ever diverge\n\t\treturn \"\", basemodel.InternalError(fmt.Errorf(\n\t\t\t\"ingestion key creation response not as expected\",\n\t\t))\n\t}\n\n\treturn ingestionKey, nil\n}\n\nfunc requestGateway[ResponseType any](\n\tctx context.Context, gatewayUrl string, licenseKey string, path string, payload any,","sourceCodeStart":253,"sourceCodeEnd":289,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/ee/query-service/app/api/cloudIntegrations.go#L253-L289","documentation":"The request to create a new cloud-provider ingestion key completed but the gateway responded with a status other than \"success\", carrying its own error message. Creation did not succeed at the application level even though HTTP succeeded.","triggerScenarios":"The search found no existing key, so getOrCreateCloudProviderIngestionKey attempts creation, and the gateway rejects it: name conflicts, quota limits, permission or license problems.","commonSituations":"Hitting a limit on ingestion keys, stale conflicting key names, or gateway-side permission changes.","solutions":["Read the surfaced createKeyResult.Error text for the gateway's reason","Resolve the reported cause (quota, conflict, permissions)","Retry creation once resolved","Escalate to SigNoz support if the gateway error is opaque"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"Parse the gateway's error text; fall back to searching for an existing key (it may have been created despite the error) before retrying creation.","preventionTips":["Search before create to avoid quota/conflict errors","Handle idempotently: re-run search after ambiguous failures"],"tags":["ingestion-key","cloud-integrations","gateway","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"}