{"record":{"id":"178a8ef42b5e5f22","repo":"vercel/next.js","slug":"method-not-implemented","errorCode":null,"errorMessage":"Method not implemented","messagePattern":"Method not implemented","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/next/src/server/lib/mock-request.ts","lineNumber":120,"sourceCode":"   * @deprecated — since v13.0.0 - Use socket instead.\n   */\n  public get connection(): Socket {\n    return this.socket\n  }\n\n  // The following methods are not implemented as they are not used in the\n  // Next.js codebase.\n\n  public get aborted(): boolean {\n    throw new Error('Method not implemented')\n  }\n\n  public get complete(): boolean {\n    throw new Error('Method not implemented')\n  }\n\n  public get trailers(): NodeJS.Dict<string> {\n    throw new Error('Method not implemented')\n  }\n\n  public get trailersDistinct(): NodeJS.Dict<string[]> {\n    throw new Error('Method not implemented')\n  }\n\n  public get rawTrailers(): string[] {\n    throw new Error('Method not implemented')\n  }\n\n  public get rawHeaders(): string[] {\n    throw new Error('Method not implemented.')\n  }\n\n  public setTimeout(): this {\n    throw new Error('Method not implemented.')\n  }\n}","sourceCodeStart":102,"sourceCodeEnd":138,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/server/lib/mock-request.ts#L102-L138","documentation":"Explicit stub on an IncomingMessage/ServerResponse mock: the trailers getter (and siblings like aborted, complete) is deliberately unimplemented because the Next.js codebase never reads it through MockedRequest/MockedResponse. Hitting it means test or tooling code relied on a mock API surface that was intentionally left out.","triggerScenarios":"An unimplemented method on the mock request object is called.","commonSituations":"Code exercising a Node request API that the mock request in preview/edge mode does not implement.","solutions":["Internal mock request limitation; avoid using that method in this code path or upgrade Next.js."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}