{"record":{"id":"af72588404dee749","repo":"Mintplex-Labs/anything-llm","slug":"document-processing-api-is-not-online-request-wil","errorCode":null,"errorMessage":"Document processing API is not online. Request will not be processed.","messagePattern":"Document processing API is not online\\. Request will not be processed\\.","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"server/endpoints/api/document/index.js","lineNumber":527,"sourceCode":"     }\n     */\n      try {\n        const Collector = new CollectorApi();\n        const requiredMetadata = [\"title\"];\n        const {\n          textContent,\n          metadata: _metadata = {},\n          addToWorkspaces = \"\",\n        } = reqBody(request);\n        const metadata =\n          typeof _metadata === \"string\"\n            ? safeJsonParse(_metadata, {})\n            : _metadata;\n        const processingOnline = await Collector.online();\n\n        if (!processingOnline) {\n          return response\n            .status(500)\n            .json({\n              success: false,\n              error: `Document processing API is not online. Request will not be processed.`,\n            })\n            .end();\n        }\n\n        if (\n          !requiredMetadata.every(\n            (reqKey) =>\n              Object.keys(metadata).includes(reqKey) && !!metadata[reqKey]\n          )\n        ) {\n          return response\n            .status(422)\n            .json({\n              success: false,\n              error: `You are missing required metadata key:value pairs in your request. Required metadata key:values are ${requiredMetadata","sourceCodeStart":509,"sourceCodeEnd":545,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/server/endpoints/api/document/index.js#L509-L545","documentation":"Availability guard in the raw-text embed API: the collector is offline, so the submitted raw text content cannot be processed and the request is rejected with a 500 instead of queuing unprocessable text.","triggerScenarios":"Thrown at server/endpoints/api/document/index.js:527 when the library encounters an invalid state.","commonSituations":"Calling a document-processing endpoint while the collector service is not running or unreachable.","solutions":["Bring the document processing API online and retry the request.","Check collector service logs and connectivity from the server."],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3aec848f2885144aa8f1e53b9731a04310d5d558","analyzedAt":"2026-08-18T10:02:21.017Z","contentChangedAt":"2026-08-18T10:02:21.017Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}