{"record":{"id":"26c66f566eee88c7","repo":"paperclipai/paperclip","slug":"paused-boolean-is-required-in-request-body","errorCode":null,"errorMessage":"\"paused\" (boolean) is required in request body.","messagePattern":"\"paused\" \\(boolean\\) is required in request body\\.","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/src/routes/adapters.ts","lineNumber":495,"sourceCode":"    res.json({ type: adapterType, disabled, changed });\n  });\n\n  /**\n   * PATCH /api/adapters/:type/override\n   *\n   * Pause or resume an external adapter's override of a builtin type.\n   * When paused, the server returns the builtin adapter for all new requests\n   * (execute, listModels, config schema, etc.).  Already-running sessions\n   * keep the adapter they started with.\n   */\n  router.patch(\"/adapters/:type/override\", async (req, res) => {\n    assertInstanceAdmin(req);\n\n    assertAdapterManagementVisible();\n\n    const adapterType = req.params.type;\n    const { paused } = req.body as { paused?: boolean };\n\n    if (typeof paused !== \"boolean\") {\n      res.status(400).json({ error: \"\\\"paused\\\" (boolean) is required in request body.\" });\n      return;\n    }\n\n    if (!BUILTIN_ADAPTER_TYPES.has(adapterType)) {\n      res.status(400).json({ error: `Type \"${adapterType}\" is not a builtin adapter.` });\n      return;\n    }\n\n    const changed = setOverridePaused(adapterType, paused);\n\n    logger.info({ type: adapterType, paused, changed }, \"Adapter override toggle\");\n\n    res.json({ type: adapterType, paused, changed });\n  });\n\n  /**","sourceCodeStart":477,"sourceCodeEnd":513,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/server/src/routes/adapters.ts#L477-L513","documentation":"Body-shape guard on PATCH /api/adapters/:type/override: pausing/resuming an external adapter's builtin override requires a boolean 'paused' field; it is missing or not a boolean, so the route returns 400 without touching the override state.","triggerScenarios":"Thrown at server/src/routes/adapters.ts:440 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include a boolean \"paused\" field in the request body."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5716fe907e596ce73501408fc6efdb19fb61edf2","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}