{"record":{"id":"b55ceab1fac62e97","repo":"ruvnet/ruflo","slug":"ipfs-pinata-pin-failed-error","errorCode":null,"errorMessage":"[IPFS] Pinata pin failed: ${error}","messagePattern":"\\[IPFS\\] Pinata pin failed: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"v3/@claude-flow/cli/src/transfer/ipfs/upload.ts","lineNumber":321,"sourceCode":"        method: 'POST',\n        headers: {\n          'Content-Type': 'application/json',\n          'pinata_api_key': pinataKey,\n          'pinata_secret_api_key': pinataSecret || '',\n        },\n        body: JSON.stringify({\n          hashToPin: cid,\n          pinataMetadata: { name: options.name || cid },\n        }),\n      });\n\n      if (response.ok) {\n        const pinnedAt = new Date().toISOString();\n        console.log(`[IPFS] Pinned ${cid} via Pinata at ${pinnedAt}`);\n        return { success: true, pinnedAt };\n      }\n    } catch (error) {\n      console.warn(`[IPFS] Pinata pin failed: ${error}`);\n    }\n  }\n\n  // Demo mode\n  const pinnedAt = new Date().toISOString();\n  console.log(`[IPFS] Demo pinning ${cid}...`);\n  await new Promise(resolve => setTimeout(resolve, 300));\n  console.log(`[IPFS] Demo pinned at ${pinnedAt}`);\n\n  return { success: true, pinnedAt };\n}\n\n/**\n * Unpin content by CID\n */\nexport async function unpinContent(\n  cid: string,\n  options: { service?: PinningService } = {}","sourceCodeStart":303,"sourceCodeEnd":339,"githubUrl":"https://github.com/ruvnet/ruflo/blob/fa13ee4ad60ac2090b1480656eb233521790d640/v3/@claude-flow/cli/src/transfer/ipfs/upload.ts#L303-L339","documentation":"Log warning in pinContent: the POST to Pinata's pinByHash endpoint threw (network/API failure or non-OK response), so the CID was not pinned via Pinata despite a successful upload.","triggerScenarios":"Thrown at v3/@claude-flow/cli/src/transfer/ipfs/upload.ts:321 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Pinata credentials and that the CID exists; retry the pin operation."],"exampleFix":null,"handlingStrategy":"fallback","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"}