{"record":{"id":"5af6fb7e7015911c","repo":"windmill-labs/windmill","slug":"debug-signing-is-not-configured-on-the-server-ple-5af6fb","errorCode":null,"errorMessage":"Debug signing is not configured on the server. Please contact your administrator.","messagePattern":"Debug signing is not configured on the server\\. Please contact your administrator\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"frontend/src/lib/components/debug/MonacoDebugger.svelte","lineNumber":357,"sourceCode":"\t): Promise<{\n\t\ttoken: string\n\t\tcode: string\n\t}> {\n\t\tif (!workspace) {\n\t\t\tthrow new Error('No workspace selected')\n\t\t}\n\n\t\tconst response = await fetch(`/api/w/${workspace}/debug/sign`, {\n\t\t\tmethod: 'POST',\n\t\t\theaders: { 'Content-Type': 'application/json' },\n\t\t\tbody: JSON.stringify({ code: codeToSign, language: lang })\n\t\t})\n\n\t\tif (!response.ok) {\n\t\t\tconst errorText = await response.text()\n\t\t\t// Parse specific error cases for better user messages\n\t\t\tif (errorText.includes('not initialized')) {\n\t\t\t\tthrow new Error(\n\t\t\t\t\t'Debug signing is not configured on the server. Please contact your administrator.'\n\t\t\t\t)\n\t\t\t}\n\t\t\tthrow new Error(errorText || 'Failed to authorize debug session')\n\t\t}\n\n\t\treturn await response.json()\n\t}\n\n\tfunction getDebugErrorMessage(error: unknown): string {\n\t\tconst message = error instanceof Error ? error.message : String(error)\n\n\t\t// Handle token verification errors from debugger\n\t\tif (message.includes('Token verification failed') || message.includes('Debug token required')) {\n\t\t\tif (message.includes('expired')) {\n\t\t\t\treturn 'Debug session expired. Please try again.'\n\t\t\t}\n\t\t\tif (message.includes('Invalid JWT signature')) {","sourceCodeStart":339,"sourceCodeEnd":375,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/frontend/src/lib/components/debug/MonacoDebugger.svelte#L339-L375","documentation":"When the /debug/sign endpoint responds non-OK and its body contains 'not initialized', the client maps it to this friendly message: the server's debug signing keys have never been initialized, so no debug session can be authorized. It is a server configuration problem, not a client bug.","triggerScenarios":"POST /api/w/{workspace}/debug/sign returns an error status with a response body containing 'not initialized' — the instance has not configured debug signing (no signing secret/keys set up by the administrator).","commonSituations":"Self-hosted instance where the debug-signing env/secret was never set; fresh deployment migrated without initializing signing keys; EE feature attempted on a deployment lacking the license/config.","solutions":["Initialize debug signing on the server (configure the signing secret per deployment docs)","Ask the instance administrator to enable/configure debug signing","Verify the server version supports the debug/sign endpoint"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { const { token, code } = await signDebugRequest(src, lang) } catch (e) { if (e.message.includes('not configured')) { showAdminConfigHelp() } else { throw e } }","preventionTips":["Check debug signing is configured before shipping debugger-dependent features","Document the required server config for self-hosted admins","Probe the endpoint once at startup to detect unconfigured instances early"],"tags":["server-config","debugging","http-error"],"backgroundTag":"server-not-configured","analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}