{"record":{"id":"cfe90f56c93f5141","repo":"ruvnet/ruflo","slug":"the-expose-api-flag-has-been-deprecated-the-api-i","errorCode":null,"errorMessage":"The EXPOSE_API flag has been deprecated. The API is now required for chat-ui to work.","messagePattern":"The EXPOSE_API flag has been deprecated\\. The API is now required for chat-ui to work\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"ruflo/src/ruvocal/src/lib/server/hooks/init.ts","lineNumber":47,"sourceCode":"\tinitExitHandler();\n\n\tif (config.METRICS_ENABLED === \"true\") {\n\t\tMetricsServer.getInstance();\n\t}\n\n\tcheckAndRunMigrations();\n\trefreshConversationStats();\n\n\t// Load MCP servers at startup\n\tloadMcpServersOnStartup();\n\n\t// Init AbortedGenerations refresh process\n\tAbortedGenerations.getInstance();\n\n\tadminTokenManager.displayToken();\n\n\tif (config.EXPOSE_API) {\n\t\tlogger.warn(\n\t\t\t\"The EXPOSE_API flag has been deprecated. The API is now required for chat-ui to work.\"\n\t\t);\n\t}\n}\n","sourceCodeStart":29,"sourceCodeEnd":52,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/ruflo/src/ruvocal/src/lib/server/hooks/init.ts#L29-L52","documentation":"Startup deprecation warning from initServer: the EXPOSE_API flag no longer does anything — the API is mandatory for chat-ui now — so setting it only produces this warning.","triggerScenarios":"Thrown at ruflo/src/ruvocal/src/lib/server/hooks/init.ts:47 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the EXPOSE_API flag from configuration; the API is always enabled now."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}