Kong/insomnia · error

Failed to get blob id=

Error message

Failed to get blob id=${id}

What it means

Guard in the blob-push loop of VCS: a blob id scheduled for upload could not be read from the local store (content null), so the encrypted blob batch cannot be completed. The unresolvable blob id is interpolated.

Solutions

  1. Restore local blob storage (re-pull project data)
  2. Re-create the affected commits if blobs are unrecoverable
  3. Report storage corruption if it recurs
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at packages/insomnia-vcs/src/vcs.ts:1200 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of Kong/insomnia@d9bb2b0142 (2026-08-26). Data as JSON: /api/errors/49da298851305d63. Report an issue: GitHub.

Appendix: source

Thrown at packages/insomnia-vcs/src/vcs.ts:1200

        'blobsCreate',
      );
      return blobsCreate.count;
    };

    // Push each missing blob in batches of 2MB max
    let count = 0;
    let batch: { id: string; content: string }[] = [];
    let batchSizeBytes = 0;
    const maxBatchSize = 1024 * 1024 * 2; // 2 MB

    const maxBatchCount = 200;

    for (let i = 0; i < allIds.length; i++) {
      const id = allIds[i];
      const content = await this._getBlobRaw(id);

      if (content === null) {
        throw new Error(`Failed to get blob id=${id}`);
      }

      const encryptedResult = crypt.encryptAESBuffer(symmetricKey, content);
      batch.push({
        id,
        content: JSON.stringify(encryptedResult, null, 2),
      });
      batchSizeBytes += content.length;
      const isLastId = i === allIds.length - 1;

      if (batchSizeBytes > maxBatchSize || isLastId || batch.length >= maxBatchCount) {
        count += await next(batch);
        const batchSizeMB = Math.round((batchSizeBytes / 1024) * 100) / 100;
        console.log(`[sync] Uploaded ${count}/${allIds.length} blobs in batch ${batchSizeMB} KB`);
        batch = [];
        batchSizeBytes = 0;
      }
    }

View on GitHub (pinned to d9bb2b0142)