{"record":{"id":"7a8b6f86a0dba4d9","repo":"Mintplex-Labs/anything-llm","slug":"document-processing-api-is-not-online-link-link-7a8b6f","errorCode":null,"errorMessage":"Document processing API is not online. Link ${link} will not be processed automatically.","messagePattern":"Document processing API is not online\\. Link (.+?) will not be processed automatically\\.","errorType":"http","errorClass":null,"httpStatus":500,"severity":"error","filePath":"server/endpoints/workspaces.js","lineNumber":190,"sourceCode":"      } catch (e) {\n        console.error(e.message, e);\n        response.sendStatus(500).end();\n      }\n    }\n  );\n\n  app.post(\n    \"/workspace/:slug/upload-link\",\n    [validatedRequest, flexUserRoleValid([ROLES.admin, ROLES.manager])],\n    async (request, response) => {\n      try {\n        const Collector = new CollectorApi();\n        const { link = \"\" } = reqBody(request);\n        const processingOnline = await Collector.online();\n\n        if (!processingOnline) {\n          response\n            .status(500)\n            .json({\n              success: false,\n              error: `Document processing API is not online. Link ${link} will not be processed automatically.`,\n            })\n            .end();\n          return;\n        }\n\n        const { success, reason } = await Collector.processLink(link);\n        if (!success) {\n          response.status(500).json({ success: false, error: reason }).end();\n          return;\n        }\n\n        Collector.log(\n          `Link ${link} uploaded processed and successfully. It is now available in documents.`\n        );\n        await Telemetry.sendTelemetry(\"link_uploaded\");","sourceCodeStart":172,"sourceCodeEnd":208,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/server/endpoints/workspaces.js#L172-L208","documentation":"Availability guard on POST /workspace/:slug/upload-link: the collector (document processing API) is offline, so the submitted link cannot be scraped/embedded and a 500 warns that it will not be processed automatically.","triggerScenarios":"Thrown at server/endpoints/workspaces.js:190 when the library encounters an invalid state.","commonSituations":"Submitting a link to a workspace while the document processing API is offline.","solutions":["Bring the document processing (collector) service online.","Verify collector connectivity and retry submitting the link."],"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"}