GopeedLab/gopeed · error · TypeError
${sourceLabel} must return a ReadableStream, got ${getValueT
Error message
${sourceLabel} must return a ReadableStream, got ${getValueTypeName(value)} What it means
Error "${sourceLabel} must return a ReadableStream, got ${getValueTypeName(value)}" thrown in GopeedLab/gopeed.
Source
Thrown at pkg/download/engine/inject/stream/stream.js:534
function getValueTypeName(value) {
if (value === null) {
return "null";
}
if (value === undefined) {
return "undefined";
}
if (value && value.constructor && typeof value.constructor.name === "string" && value.constructor.name) {
return value.constructor.name;
}
return typeof value;
}
function toReadableStreamReader(value, sourceLabel) {
if (value && typeof value.getReader === "function") {
return value.getReader();
}
throw new TypeError(sourceLabel + " must return a ReadableStream, got " + getValueTypeName(value));
}
async function openBlobReadable(blob, request) {
const { offset, end } = request;
const sliced = blob.slice(offset, end >= offset ? end + 1 : undefined);
if (sliced && typeof sliced.stream === "function") {
try {
const stream = sliced.stream();
if (stream && typeof stream.getReader === "function") {
return stream;
}
} catch (_) {
}
}
if (sliced && typeof sliced.arrayBuffer === "function") {
const buffer = await sliced.arrayBuffer();
return new ReadableStream({
start(controller) {View on GitHub (pinned to 7b7327ffb3)
When it happens
Trigger: Thrown at pkg/download/engine/inject/stream/stream.js:534 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/3a94f984a564ae70.
Report an issue: GitHub.