{"record":{"id":"9d4036e24dd19d62","repo":"ruvnet/ruflo","slug":"32600","errorCode":"-32600","errorMessage":"Invalid JSON-RPC version","messagePattern":"Invalid JSON-RPC version","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"v3/@claude-flow/mcp/src/transport/http.ts","lineNumber":429,"sourceCode":"          ip: req.ip,\n          path: req.path,\n          error: authResult.error,\n        });\n        res.status(401).json({\n          jsonrpc: '2.0',\n          id: null,\n          error: { code: -32001, message: 'Unauthorized' },\n        });\n        return;\n      }\n    } else if (requiresAuth && !this.config.auth) {\n      this.logger.warn('No authentication configured - running in development mode');\n    }\n\n    const message = req.body;\n\n    if (message.jsonrpc !== '2.0') {\n      res.status(400).json({\n        jsonrpc: '2.0',\n        id: message.id || null,\n        error: { code: -32600, message: 'Invalid JSON-RPC version' },\n      });\n      return;\n    }\n\n    if (!message.method) {\n      res.status(400).json({\n        jsonrpc: '2.0',\n        id: message.id || null,\n        error: { code: -32600, message: 'Missing method' },\n      });\n      return;\n    }\n\n    const sseSessionId = typeof req.query.sessionId === 'string' ? req.query.sessionId : undefined;\n    const sseResponse = sseSessionId ? this.sseClients.get(sseSessionId) : undefined;","sourceCodeStart":411,"sourceCodeEnd":447,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/mcp/src/transport/http.ts#L411-L447","documentation":"handleHttpRequest() parsed the body and found message.jsonrpc !== '2.0'. Malformed-request guard (JSON-RPC -32600): the client sent a payload that is not a valid 2.0 JSON-RPC request (wrong version field or a non-RPC body routed here), so it is rejected before method dispatch.","triggerScenarios":"Thrown at v3/@claude-flow/mcp/src/transport/http.ts:429 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the JSON-RPC version field to \"2.0\" in the request payload.","Validate the request against the JSON-RPC 2.0 schema before sending."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"fa13ee4ad60ac2090b1480656eb233521790d640","analyzedAt":"2026-08-18T21:34:22.708Z","contentChangedAt":"2026-08-18T21:34:22.708Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}