{"record":{"id":"e21b1cefe6531631","repo":"SigNoz/signoz","slug":"gateway-unsupported","errorCode":"gateway_unsupported","errorMessage":"unsupported call","messagePattern":"unsupported call","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/gateway/noopgateway/provider.go","lineNumber":27,"sourceCode":"\t\"github.com/SigNoz/signoz/pkg/gateway\"\n\t\"github.com/SigNoz/signoz/pkg/types/gatewaytypes\"\n\t\"github.com/SigNoz/signoz/pkg/valuer\"\n)\n\ntype provider struct{}\n\nfunc NewProviderFactory() factory.ProviderFactory[gateway.Gateway, gateway.Config] {\n\treturn factory.NewProviderFactory(factory.MustNewName(\"noop\"), func(ctx context.Context, ps factory.ProviderSettings, c gateway.Config) (gateway.Gateway, error) {\n\t\treturn New(ctx, ps, c)\n\t})\n}\n\nfunc New(_ context.Context, _ factory.ProviderSettings, _ gateway.Config) (gateway.Gateway, error) {\n\treturn &provider{}, nil\n}\n\nfunc (p *provider) GetIngestionKeys(_ context.Context, _ valuer.UUID, _, _ int) (*gatewaytypes.GettableIngestionKeys, error) {\n\treturn nil, errors.New(errors.TypeUnsupported, gateway.ErrCodeGatewayUnsupported, \"unsupported call\")\n}\n\nfunc (p *provider) SearchIngestionKeysByName(_ context.Context, _ valuer.UUID, _ string, _, _ int) (*gatewaytypes.GettableIngestionKeys, error) {\n\treturn nil, errors.New(errors.TypeUnsupported, gateway.ErrCodeGatewayUnsupported, \"unsupported call\")\n}\n\nfunc (p *provider) CreateIngestionKey(_ context.Context, _ valuer.UUID, _ string, _ []string, _ time.Time) (*gatewaytypes.GettableCreatedIngestionKey, error) {\n\treturn nil, errors.New(errors.TypeUnsupported, gateway.ErrCodeGatewayUnsupported, \"unsupported call\")\n}\n\nfunc (p *provider) UpdateIngestionKey(_ context.Context, _ valuer.UUID, _ string, _ string, _ []string, _ time.Time) error {\n\treturn errors.New(errors.TypeUnsupported, gateway.ErrCodeGatewayUnsupported, \"unsupported call\")\n}\n\nfunc (p *provider) DeleteIngestionKey(_ context.Context, _ valuer.UUID, _ string) error {\n\treturn errors.New(errors.TypeUnsupported, gateway.ErrCodeGatewayUnsupported, \"unsupported call\")\n}\n","sourceCodeStart":9,"sourceCodeEnd":45,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/pkg/gateway/noopgateway/provider.go#L9-L45","documentation":"The noop gateway provider implements the gateway.Gateway interface but every method is a stub returning an 'unsupported call' error. This one is returned by GetIngestionKeys when the noop provider is the configured ingestion-key gateway.","triggerScenarios":"Running signoz with the noop gateway selected (e.g. no external ingestion-key store configured) and hitting GET ingestion keys endpoints.","commonSituations":"Default/empty gateway config in dev or minimal installs; upgrading to a version where ingestion-key endpoints require an explicit gateway provider.","solutions":["Configure a real gateway provider in the gateway config (set the provider type for ingestion keys)","If you don't need the feature, avoid the ingestion-key API routes","Check config docs for the correct provider name/env vars"],"exampleFix":"// before\ngateway:\n  ingestionKey:\n    provider: noop\n// after\ngateway:\n  ingestionKey:\n    provider: <supported-provider>","handlingStrategy":"type-guard","validationCode":"// before listing keys, confirm a non-noop gateway is configured\ncfg, _ := settings.Gateway()\nif cfg.Provider == \"noop\" { return errors.New(\"ingestion keys unavailable\") }","typeGuard":"func isNoopGateway(cfg gateway.Config) bool { return cfg.Provider == \"noop\" || cfg.Provider == \"\" }","tryCatchPattern":"if err != nil && errors.Asc(err, gateway.ErrCodeGatewayUnsupported) { /* skip feature, don't retry */ }","preventionTips":["Fail fast at startup if features you need require a real gateway","Document which API families depend on the gateway provider"],"tags":["gateway","noop","configuration","ingestion-key"],"backgroundTag":"operation-not-supported","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}