{"record":{"id":"615da235661eed5c","repo":"vercel/next.js","slug":"next-js-unhandled-rejection-filter-message","errorCode":null,"errorMessage":"[Next.js Unhandled Rejection Filter]: ${message}","messagePattern":"\\[Next\\.js Unhandled Rejection Filter\\]: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/node-environment-extensions/unhandled-rejection.external.tsx","lineNumber":80,"sourceCode":"    }\n}\n\nlet debug: typeof console.debug | undefined\nlet debugWithTrace: typeof console.debug | undefined\nlet warn: typeof console.warn | undefined\nlet warnWithTrace: typeof console.warn | undefined\n\nswitch (UHR_FILTER_LOG_LEVEL) {\n  case 'debug':\n    debug = (message: string) =>\n      console.log('[Next.js Unhandled Rejection Filter]: ' + message)\n    debugWithTrace = (message: string) => {\n      console.log(new DebugWithStack(message))\n    }\n  // Intentional fallthrough\n  case 'warn':\n    warn = (message: string) => {\n      console.warn('[Next.js Unhandled Rejection Filter]: ' + message)\n    }\n    warnWithTrace = (message: string) => {\n      console.warn(new WarnWithStack(message))\n    }\n    break\n  case 'silent':\n  default:\n}\n\nclass DebugWithStack extends Error {\n  constructor(message: string) {\n    super(message)\n    this.name = '[Next.js Unhandled Rejection Filter]'\n  }\n}\n\nclass WarnWithStack extends Error {\n  constructor(message: string) {","sourceCodeStart":62,"sourceCodeEnd":98,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/server/node-environment-extensions/unhandled-rejection.external.tsx#L62-L98","documentation":"Log line emitted by the Next.js unhandled-rejection filter's logging helpers. During setup, a switch on UHR_FILTER_LOG_LEVEL assigns warn/warnWithTrace/debug functions; this message is the formatted rejection reason being surfaced at the configured 'warn' level after the filter decided to log (rather than suppress) an unhandled promise rejection in the dev server process.","triggerScenarios":"Thrown at packages/next/src/server/node-environment-extensions/unhandled-rejection.external.tsx:80 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Handle the rejected promise in your code (add .catch or try/await) so the rejection is not unhandled."],"exampleFix":null,"handlingStrategy":"fallback","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-14T05:17:10.506Z"}