{"record":{"id":"0f4419bb26e2e4e4","repo":"paperclipai/paperclip","slug":"api-route-not-found","errorCode":null,"errorMessage":"API route not found","messagePattern":"API route not found","errorType":"http","errorClass":null,"httpStatus":404,"severity":"error","filePath":"server/src/app.ts","lineNumber":671,"sourceCode":"          if (handle) handle.notify(method, params);\n        };\n        const services = buildHostServices(db, pluginId, manifest.id, eventBus, notifyWorker, {\n          pluginWorkerManager: workerManager,\n          manifest,\n        });\n        hostServicesDisposers.set(pluginId, () => services.dispose());\n        return createHostClientHandlers({\n          pluginId,\n          capabilities: manifest.capabilities,\n          services,\n        });\n      },\n    },\n  );\n  runtimePluginLoader = loader;\n  api.use(\n    toolGatewayRoutes(db, toolGateway),\n  );\n  api.use(\n    pluginRoutes(\n      db,\n      loader,\n      { scheduler, jobStore },\n      { workerManager },\n      { toolDispatcher },\n      { workerManager },\n      { toolGateway },\n    ),\n  );\n  api.use(adapterRoutes({\n    getNativeRunnerEnabled: async () =>\n      (await instanceSettingsService(db).getExperimental()).enableNativeRunner === true,\n  }));\n  api.use(\n    accessRoutes(db, {\n      deploymentMode: opts.deploymentMode,","sourceCodeStart":653,"sourceCodeEnd":689,"githubUrl":"https://github.com/paperclipai/paperclip/blob/01ad8584922b5d85292b1723cae71fa0d9b07a19/server/src/app.ts#L653-L689","documentation":"API catch-all in createApp: the request matched the /api mount but no registered route handled its method+path, so Express fell through to the terminal middleware which returns a uniform 404 JSON error. It is a router fallback, not a thrown exception.","triggerScenarios":"Thrown at server/src/app.ts:661 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the request path and method against the API routes; correct the URL and retry."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"01ad8584922b5d85292b1723cae71fa0d9b07a19","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}