{"record":{"id":"76838d8f819ac0de","repo":"paperclipai/paperclip","slug":"adapter-type-is-required","errorCode":null,"errorMessage":"Adapter type is required.","messagePattern":"Adapter type is required\\.","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"server/src/routes/adapters.ts","lineNumber":523,"sourceCode":"\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  /**\n   * DELETE /api/adapters/:type\n   *\n   * Unregister an external adapter. Built-in adapters cannot be removed.\n   */\n  router.delete(\"/adapters/:type\", async (req, res) => {\n    assertInstanceAdmin(req);\n    assertAdapterManagementVisible();\n\n    const adapterType = req.params.type;\n\n    if (!adapterType) {\n      res.status(400).json({ error: \"Adapter type is required.\" });\n      return;\n    }\n\n    // Prevent removal of built-in adapters, unless this built-in type is\n    // currently backed by an external adapter plugin override.\n    if (BUILTIN_ADAPTER_TYPES.has(adapterType) && !getAdapterPluginByType(adapterType)) {\n      res.status(403).json({\n        error: `Cannot remove built-in adapter \"${adapterType}\".`,\n      });\n      return;\n    }\n\n    // Check that the adapter exists in the registry\n    const existing = findServerAdapter(adapterType);\n    if (!existing) {\n      res.status(404).json({","sourceCodeStart":505,"sourceCodeEnd":541,"githubUrl":"https://github.com/paperclipai/paperclip/blob/5716fe907e596ce73501408fc6efdb19fb61edf2/server/src/routes/adapters.ts#L505-L541","documentation":"DELETE /api/adapters/:type was called with an empty :type parameter. Route-level validation guard; the 400 response uses this message when the path param is missing/blank.","triggerScenarios":"Thrown at server/src/routes/adapters.ts:467 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide the adapter type in the request."],"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-14T05:17:10.506Z"}