{"record":{"id":"823202a56deafc6b","repo":"GopeedLab/gopeed","slug":"readablestream-is-locked","errorCode":null,"errorMessage":"ReadableStream is locked","messagePattern":"ReadableStream is locked","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"pkg/download/engine/inject/stream/stream.js","lineNumber":150,"sourceCode":"            this._error(err);\n          })\n          .finally(() => {\n            this._pulling = false;\n            if (!this._closed && !this._errored && this._queue.length === 0 && this._waiters.length > 0) {\n              this._maybePull();\n            }\n          });\n      }\n\n      _markBodyUsed() {\n        if (typeof this.__gopeedMarkBodyUsed === \"function\") {\n          this.__gopeedMarkBodyUsed();\n        }\n      }\n\n      getReader() {\n        if (this.locked) {\n          throw new TypeError(\"ReadableStream is locked\");\n        }\n        this.locked = true;\n        this._reader = new ReadableStreamDefaultReader(this);\n        return this._reader;\n      }\n\n      cancel(reason) {\n        this._markBodyUsed();\n        if (this._source && typeof this._source.cancel === \"function\") {\n          return Promise.resolve(this._source.cancel(reason)).then(() => {\n            this._close();\n          });\n        }\n        this._close();\n        return Promise.resolve();\n      }\n\n      async pipeTo(dest) {","sourceCodeStart":132,"sourceCodeEnd":168,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/pkg/download/engine/inject/stream/stream.js#L132-L168","documentation":"Error \"ReadableStream is locked\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at pkg/download/engine/inject/stream/stream.js:150 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":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}