GopeedLab/gopeed · error · TypeError

Unsupported object type for gopeed.runtime.blob.createObject

Error message

Unsupported object type for gopeed.runtime.blob.createObjectURL: ${getValueTypeName(described.value)}. Expected Blob or opener function

What it means

Error "Unsupported object type for gopeed.runtime.blob.createObjectURL: ${getValueTypeName(described.value)}. Expected Blob or opener function" thrown in GopeedLab/gopeed.

Source

Thrown at pkg/download/engine/inject/stream/stream.js:877

      Promise.resolve().then(startPipe);
    }
  };

  globalThis.__gopeed_blob_create_object_url = function (value, options) {
    const described = describeObjectURLValue(value);
    if (described.kind === "blob") {
      const blob = described.value;
      const normalized = normalizeBlobObjectURLOptions(blob, options, Number(blob.size) > 0);
      validateBlobObjectURLOptions(normalized);
      const opener = async (request) => openBlobReadable(blob, request);
      return createBlobObjectURL(opener, normalized);
    }
    if (described.kind === "opener") {
      const normalized = normalizeBlobObjectURLOptions(null, options, false);
      validateBlobObjectURLOptions(normalized);
      return createBlobObjectURL(described.openReadable, normalized);
    }
    throw new TypeError("Unsupported object type for gopeed.runtime.blob.createObjectURL: " + getValueTypeName(described.value) + ". Expected Blob or opener function");
  };

  globalThis.__gopeed_blob_revoke_object_url = function (url) {
    if (typeof url === "string") {
      revokeObjectURL(url);
    }
  };

  const originalFetch = typeof globalThis.fetch === "function"
    ? globalThis.fetch.bind(globalThis)
    : null;

  if (typeof fetchOpen === "function") {
    globalThis.fetch = async function (input, init) {
      const request = new Request(input, init);
      if (originalFetch && (request.method === "HEAD" || request.redirect === "manual" || request.redirect === "error")) {
        return originalFetch(input, init);
      }

View on GitHub (pinned to 7b7327ffb3)

When it happens

Trigger: Thrown at pkg/download/engine/inject/stream/stream.js:877 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of GopeedLab/gopeed@7b7327ffb3 (2026-08-16). Data as JSON: /api/errors/21c9c2b250a1ff5f. Report an issue: GitHub.