{"record":{"id":"3d4bfe3aa9e93ffc","repo":"paperclipai/paperclip","slug":"invalid-workspace-overview-query","errorCode":null,"errorMessage":"Invalid workspace overview query","messagePattern":"Invalid workspace overview query","errorType":"http","errorClass":null,"httpStatus":422,"severity":"error","filePath":"server/src/routes/execution-workspaces.ts","lineNumber":145,"sourceCode":"      projectWorkspaceId: req.query.projectWorkspaceId as string | undefined,\n      issueId: req.query.issueId as string | undefined,\n      status: req.query.status as string | undefined,\n      reuseEligible: req.query.reuseEligible === \"true\",\n    };\n    const workspaces = req.query.summary === \"true\"\n      ? await svc.listSummaries(companyId, filters)\n      : await svc.list(companyId, filters);\n    res.json(workspaces);\n  });\n\n  router.get(\"/companies/:companyId/workspace-overview\", async (req, res) => {\n    const companyId = req.params.companyId as string;\n    assertCompanyAccess(req, companyId);\n    if (!(await assertExecutionWorkspaceReadAllowed(req, res, companyId))) return;\n\n    const parsed = workspaceOverviewQuerySchema.safeParse(req.query);\n    if (!parsed.success) {\n      res.status(422).json({\n        error: \"Invalid workspace overview query\",\n        details: parsed.error.flatten(),\n      });\n      return;\n    }\n\n    const overview = await svc.listOverview(companyId, parsed.data);\n    res.json(overview);\n  });\n\n  router.get(\"/execution-workspaces/:id\", async (req, res) => {\n    const id = req.params.id as string;\n    const workspace = await getAccessibleResource(req, res, svc.getById(id), \"Execution workspace not found\");\n    if (!workspace) return;\n    if (!(await assertExecutionWorkspaceReadAllowed(req, res, workspace.companyId))) return;\n    res.json(workspace);\n  });\n","sourceCodeStart":127,"sourceCodeEnd":163,"githubUrl":"https://github.com/paperclipai/paperclip/blob/a7e689b3c35347b529cb9f54c9b9a8575a3dcab6/server/src/routes/execution-workspaces.ts#L127-L163","documentation":"The workspace-overview query-string failed schema validation (projectWorkspaceId/issueId/status/reuseEligible/summary shape) before the overview listing ran; the first zod issue message is surfaced as the error.","triggerScenarios":"Thrown at server/src/routes/execution-workspaces.ts:110 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the offending parameter to satisfy the constraint stated in the error message (type, range, or allowed values), then retry.","Refer to the route's request validation in the named file and the shared validators for the accepted format."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a7e689b3c35347b529cb9f54c9b9a8575a3dcab6","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}