{"record":{"id":"49da298851305d63","repo":"Kong/insomnia","slug":"failed-to-get-blob-id-id","errorCode":null,"errorMessage":"Failed to get blob id=${id}","messagePattern":"Failed to get blob id=(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/insomnia-vcs/src/vcs.ts","lineNumber":1200,"sourceCode":"        'blobsCreate',\n      );\n      return blobsCreate.count;\n    };\n\n    // Push each missing blob in batches of 2MB max\n    let count = 0;\n    let batch: { id: string; content: string }[] = [];\n    let batchSizeBytes = 0;\n    const maxBatchSize = 1024 * 1024 * 2; // 2 MB\n\n    const maxBatchCount = 200;\n\n    for (let i = 0; i < allIds.length; i++) {\n      const id = allIds[i];\n      const content = await this._getBlobRaw(id);\n\n      if (content === null) {\n        throw new Error(`Failed to get blob id=${id}`);\n      }\n\n      const encryptedResult = crypt.encryptAESBuffer(symmetricKey, content);\n      batch.push({\n        id,\n        content: JSON.stringify(encryptedResult, null, 2),\n      });\n      batchSizeBytes += content.length;\n      const isLastId = i === allIds.length - 1;\n\n      if (batchSizeBytes > maxBatchSize || isLastId || batch.length >= maxBatchCount) {\n        count += await next(batch);\n        const batchSizeMB = Math.round((batchSizeBytes / 1024) * 100) / 100;\n        console.log(`[sync] Uploaded ${count}/${allIds.length} blobs in batch ${batchSizeMB} KB`);\n        batch = [];\n        batchSizeBytes = 0;\n      }\n    }","sourceCodeStart":1182,"sourceCodeEnd":1218,"githubUrl":"https://github.com/Kong/insomnia/blob/d9bb2b0142600f21309832daea3317942d285984/packages/insomnia-vcs/src/vcs.ts#L1182-L1218","documentation":"Error \"Failed to get blob id=${id}\" thrown in Kong/insomnia.","triggerScenarios":"Thrown at packages/insomnia-vcs/src/vcs.ts:1200 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"d9bb2b0142600f21309832daea3317942d285984","analyzedAt":"2026-08-26T18:04:05.187Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}