{"record":{"id":"56e063c61819ea5a","repo":"SigNoz/signoz","slug":"unsupported","errorCode":"unsupported","errorMessage":"not implemented","messagePattern":"not implemented","errorType":"http","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"pkg/licensing/nooplicensing/api.go","lineNumber":18,"sourceCode":"package nooplicensing\n\nimport (\n\t\"net/http\"\n\n\t\"github.com/SigNoz/signoz/pkg/errors\"\n\t\"github.com/SigNoz/signoz/pkg/http/render\"\n\t\"github.com/SigNoz/signoz/pkg/licensing\"\n)\n\ntype noopLicensingAPI struct{}\n\nfunc NewLicenseAPI() licensing.API {\n\treturn &noopLicensingAPI{}\n}\n\nfunc (api *noopLicensingAPI) Activate(rw http.ResponseWriter, r *http.Request) {\n\trender.Error(rw, errors.New(errors.TypeUnsupported, licensing.ErrCodeUnsupported, \"not implemented\"))\n}\n\nfunc (api *noopLicensingAPI) GetActive(rw http.ResponseWriter, r *http.Request) {\n\trender.Error(rw, errors.New(errors.TypeUnsupported, licensing.ErrCodeUnsupported, \"not implemented\"))\n}\n\nfunc (api *noopLicensingAPI) Refresh(rw http.ResponseWriter, r *http.Request) {\n\trender.Error(rw, errors.New(errors.TypeUnsupported, licensing.ErrCodeUnsupported, \"not implemented\"))\n}\n\nfunc (api *noopLicensingAPI) Checkout(rw http.ResponseWriter, r *http.Request) {\n\trender.Error(rw, errors.New(errors.TypeUnsupported, licensing.ErrCodeUnsupported, \"not implemented\"))\n}\n\nfunc (api *noopLicensingAPI) Portal(rw http.ResponseWriter, r *http.Request) {\n\trender.Error(rw, errors.New(errors.TypeUnsupported, licensing.ErrCodeUnsupported, \"not implemented\"))\n}\n","sourceCodeStart":1,"sourceCodeEnd":36,"githubUrl":"https://github.com/SigNoz/signoz/blob/5069bf80b08f1f00d7e014eccc09902f9871004f/pkg/licensing/nooplicensing/api.go#L1-L36","documentation":"The noop licensing API's Activate HTTP handler always returns an 'unsupported' error. This implementation exists so the service compiles/runs when no real licensing backend is wired in; every endpoint is a stub.","triggerScenarios":"Calling the license activation REST endpoint (POST to the licensing API) while the noop licensing module is registered instead of a real provider.","commonSituations":"Running the open-source/self-hosted build where licensing endpoints are intentionally disabled; hitting /license endpoints in local dev with the noop module loaded.","solutions":["Use a build that includes a real licensing provider (commercial build) if you need licensing","Return 404/ignore these endpoints in self-hosted deployments","Don't build automated flows against licensing endpoints when using the noop module"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"// client side: treat 4xx 'unsupported' from /license/activate as licensing-disabled\nif resp.StatusCode >= 400 { log.Info(\"licensing not available in this build\") }","preventionTips":["Feature-detect licensing endpoints before calling them","Don't automate against licensing endpoints in OSS builds"],"tags":["licensing","noop","http","unsupported"],"backgroundTag":"feature-not-implemented","analyzedSha":"5069bf80b08f1f00d7e014eccc09902f9871004f","analyzedAt":"2026-08-28T06:22:12.824Z","schemaVersion":2},"datasetVersion":"2026-08-28T11:17:15.048Z"}