{"record":{"id":"a24c8add38ab4fdb","repo":"ruvnet/ruflo","slug":"model-data-required","errorCode":null,"errorMessage":"Model data required","messagePattern":"Model data required","errorType":"http","errorClass":null,"httpStatus":400,"severity":"error","filePath":"v3/@claude-flow/cli/cloud-functions/publish-registry/index.js","lineNumber":269,"sourceCode":"          cid: pinResult.IpfsHash,\n          updatedAt: registry.updatedAt,\n          pluginCount: registry.plugins.length,\n          totalDownloads: registry.totalDownloads,\n          gateways: [\n            `https://gateway.pinata.cloud/ipfs/${pinResult.IpfsHash}`,\n            `https://ipfs.io/ipfs/${pinResult.IpfsHash}`,\n            `https://dweb.link/ipfs/${pinResult.IpfsHash}`,\n          ],\n          publicKey,\n        });\n      }\n\n      case 'export-model': {\n        const pinataJwt = await getSecret('pinata-jwt');\n        const modelData = req.body;\n\n        if (!modelData) {\n          return res.status(400).json({ error: 'Model data required' });\n        }\n\n        const result = await exportModel(modelData, pinataJwt);\n        await trackEvent(bucket, 'model-export', modelData.id || 'unknown');\n\n        return res.json({\n          success: true,\n          ...result,\n        });\n      }\n\n      case 'import-model': {\n        const { cid } = req.query;\n\n        if (!cid) {\n          return res.status(400).json({ error: 'CID required' });\n        }\n","sourceCodeStart":251,"sourceCodeEnd":287,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/cli/cloud-functions/publish-registry/index.js#L251-L287","documentation":"The 'export-model' action of the publish-registry Cloud Function found req.body empty (no model payload was POSTed). Input-presence guard: exporting a model to IPFS/Pinata requires the serialized model data, so the request is rejected with 400 before any signing or pinning occurs.","triggerScenarios":"Thrown at v3/@claude-flow/cli/cloud-functions/publish-registry/index.js:269 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide all required parameters listed in the message.","Validate required fields before dispatch and report the full set of missing fields at once."],"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"}