{"record":{"id":"7327ea5e99d91565","repo":"GopeedLab/gopeed","slug":"writablestream-is-locked","errorCode":null,"errorMessage":"WritableStream is locked","messagePattern":"WritableStream is locked","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"pkg/download/engine/inject/stream/stream.js","lineNumber":197,"sourceCode":"          }\n        } catch (err) {\n          await writer.abort(err);\n          throw err;\n        } finally {\n          reader.releaseLock();\n          writer.releaseLock();\n        }\n      }\n    }\n\n    globalThis.ReadableStream = ReadableStream;\n  }\n\n  if (typeof globalThis.WritableStream === \"undefined\") {\n    class WritableStreamDefaultWriter {\n      constructor(stream) {\n        if (stream.locked) {\n          throw new TypeError(\"WritableStream is locked\");\n        }\n        this._stream = stream;\n        this._stream.locked = true;\n      }\n\n      write(chunk) {\n        return this._stream._write(chunk);\n      }\n\n      close() {\n        return this._stream._close();\n      }\n\n      abort(reason) {\n        return this._stream._abort(reason);\n      }\n\n      releaseLock() {","sourceCodeStart":179,"sourceCodeEnd":215,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/pkg/download/engine/inject/stream/stream.js#L179-L215","documentation":"Error \"WritableStream is locked\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at pkg/download/engine/inject/stream/stream.js:197 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"}