{"record":{"id":"b361ba3992a15bd2","repo":"microsoft/playwright","slug":"response-has-been-disposed","errorCode":null,"errorMessage":"Response has been disposed","messagePattern":"Response has been disposed","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/playwright-core/src/client/fetch.ts","lineNumber":377,"sourceCode":"      startTime: -1,\n      domainLookupStart: -1,\n      domainLookupEnd: -1,\n      connectStart: -1,\n      secureConnectionStart: -1,\n      connectEnd: -1,\n      requestStart: -1,\n      responseStart: -1,\n      ...this._initializer.timing,\n      responseEnd: this._initializer.responseEndTiming ?? -1,\n    };\n  }\n\n  async body(): Promise<Buffer> {\n    return await this._request._wrapApiCall(async () => {\n      try {\n        const result = await this._request._channel.fetchResponseBody({ fetchUid: this._fetchUid() }, kNoTimeout);\n        if (result.binary === undefined)\n          throw new Error('Response has been disposed');\n        return result.binary;\n      } catch (e) {\n        if (isTargetClosedError(e))\n          throw new Error('Response has been disposed');\n        throw e;\n      }\n    }, { internal: true });\n  }\n\n  async text(): Promise<string> {\n    const content = await this.body();\n    return content.toString('utf8');\n  }\n\n  async json(): Promise<any> {\n    const content = await this.text();\n    return JSON.parse(content);\n  }","sourceCodeStart":359,"sourceCodeEnd":395,"githubUrl":"https://github.com/microsoft/playwright/blob/c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6/packages/playwright-core/src/client/fetch.ts#L359-L395","documentation":"Error \"Response has been disposed\" thrown in microsoft/playwright.","triggerScenarios":"Thrown at packages/playwright-core/src/client/fetch.ts:377 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":"c8fc3bf8d31542d59b4d4d9eaab1df93ff541dc6","analyzedAt":"2026-08-12T07:26:36.950Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}