{"record":{"id":"33b169aab356b6df","repo":"Mintplex-Labs/anything-llm","slug":"missing-filename","errorCode":null,"errorMessage":"Missing filename","messagePattern":"Missing filename","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/endpoints/workspaces.js","lineNumber":1018,"sourceCode":"        response.status(500).end();\n      }\n    }\n  );\n\n  app.delete(\n    \"/workspace/:slug/embed-queue\",\n    [\n      validatedRequest,\n      flexUserRoleValid([ROLES.admin, ROLES.manager]),\n      validWorkspaceSlug,\n    ],\n    async (request, response) => {\n      try {\n        const workspace = response.locals.workspace;\n        const { filename } = reqBody(request);\n        if (!filename) {\n          response\n            .status(400)\n            .json({ success: false, error: \"Missing filename\" });\n          return;\n        }\n\n        const { removeQueuedFile } = require(\"../utils/EmbeddingWorkerManager\");\n        const sent = removeQueuedFile(workspace.slug, filename);\n        response.status(200).json({ success: sent });\n      } catch (e) {\n        console.error(e.message, e);\n        response.status(500).json({ success: false, error: e.message });\n      }\n    }\n  );\n\n  app.get(\n    \"/workspace/:slug/is-agent-command-available\",\n    [validatedRequest, flexUserRoleValid([ROLES.all]), validWorkspaceSlug],\n    async (_, response) => {","sourceCodeStart":1000,"sourceCodeEnd":1036,"githubUrl":"https://github.com/Mintplex-Labs/anything-llm/blob/3aec848f2885144aa8f1e53b9731a04310d5d558/server/endpoints/workspaces.js#L1000-L1036","documentation":"Validation guard in the DELETE /workspace/:slug/embed-queue endpoint: the request body contains no filename, so the handler cannot identify which queued file to remove from the embedding queue.","triggerScenarios":"Thrown at server/endpoints/workspaces.js:1018 when the library encounters an invalid state.","commonSituations":"A workspace file operation was called without a filename.","solutions":["Include a filename in the request.","Use the exact stored document filename."],"exampleFix":null,"handlingStrategy":"validation","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-14T05:17:10.506Z"}