Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fixed dedupe response cloning #73274

Merged
merged 1 commit into from
Dec 4, 2024
Merged

fix: fixed dedupe response cloning #73274

merged 1 commit into from
Dec 4, 2024

Conversation

wyattjoh
Copy link
Member

@wyattjoh wyattjoh commented Nov 27, 2024

Based on our testing, we've observed a bug with undici that presents as the Body has already been consumed error while trying to call Response#clone(). The problem was resolved using a custom cloning implementation.

Rather than relying on the existing Response#clone(), we call ReadableStream#tee() on the body and re-create the Response object. This has the same underlying behaviour as Response#clone() (admittedly with more steps), but explicitly manages the stream management correctly during response cloning.

@ijjk ijjk added created-by: Next.js team PRs by the Next.js team. type: next labels Nov 27, 2024
@ijjk
Copy link
Member

ijjk commented Nov 27, 2024

Failing test suites

Commit: 8c83edb

pnpm test-dev test/development/acceptance-app/ReactRefreshLogBox.test.ts

  • ReactRefreshLogBox app default > server component can recover from error thrown in the module
Expand output

● ReactRefreshLogBox app default › server component can recover from error thrown in the module

Expected Redbox but found none

  1060 |
  1061 |       await next.patchFile('index.js', "throw new Error('module error')")
> 1062 |       await session.assertHasRedbox()
       |       ^
  1063 |       await next.patchFile(
  1064 |         'index.js',
  1065 |         'export default function Page() {return <p>hello world</p>}'

  at Object.<anonymous> (development/acceptance-app/ReactRefreshLogBox.test.ts:1062:7)

Read more about building and testing Next.js in contributing.md.

pnpm test-dev test/development/middleware-errors/index.test.ts

  • middleware - development errors > when running invalid dynamic code with eval > renders the error correctly and recovers
  • middleware - development errors > when throwing while loading the module > renders the error correctly and recovers
Expand output

● middleware - development errors › when running invalid dynamic code with eval › renders the error correctly and recovers

Expected no Redbox but found one
header: 1 of 1 error
Next.js (15.0.4-canary.39)
Server Error

ReferenceError: test is not defined

This error happened while generating the page. Any console logs will be displayed in the terminal window.
description: ReferenceError: test is not defined
source: middleware.js (4:9) @ eval

  2 |       import { NextResponse } from 'next/server'
  3 |       export default function () {
> 4 |         eval('test')
    |         ^
  5 |         return NextResponse.next()
  6 |       }

  170 |       }, 10000) // middleware rebuild takes a while in CI
  171 |
> 172 |       await assertNoRedbox(browser)
      |       ^
  173 |     })
  174 |   })
  175 |

  at Object.<anonymous> (development/middleware-errors/index.test.ts:172:7)

● middleware - development errors › when throwing while loading the module › renders the error correctly and recovers

Expected no Redbox but found one
header: 1 of 1 error
Next.js (15.0.4-canary.39)
Server Error

Error: booooom!

This error happened while generating the page. Any console logs will be displayed in the terminal window.
description: Error: booooom!
source: middleware.js (3:13) @ eval

  1 |
  2 |       import { NextResponse } from 'next/server'
> 3 |       throw new Error('booooom!')
    |             ^
  4 |       export default function () {
  5 |         return NextResponse.next()
  6 |       }

  217 |       expect(source).not.toContain('//middleware.js')
  218 |       await next.patchFile('middleware.js', `export default function () {}`)
> 219 |       await assertNoRedbox(browser)
      |       ^
  220 |     })
  221 |   })
  222 |

  at Object.<anonymous> (development/middleware-errors/index.test.ts:219:7)

Read more about building and testing Next.js in contributing.md.

@ijjk
Copy link
Member

ijjk commented Nov 27, 2024

Stats from current PR

Default Build (Increase detected ⚠️)
General Overall increase ⚠️
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
buildDuration 20.2s 17.8s N/A
buildDurationCached 16.9s 15s N/A
nodeModulesSize 408 MB 409 MB ⚠️ +94.4 kB
nextStartRea..uration (ms) 468ms 476ms N/A
Client Bundles (main, webpack)
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
3003-HASH.js gzip 49.2 kB 49.2 kB N/A
524.HASH.js gzip 168 B 169 B N/A
7097-HASH.js gzip 5.3 kB 5.3 kB N/A
ee9ab1db-HASH.js gzip 52.8 kB 52.8 kB N/A
framework-HASH.js gzip 57.6 kB 57.6 kB N/A
main-app-HASH.js gzip 231 B 233 B N/A
main-HASH.js gzip 33.7 kB 33.7 kB N/A
webpack-HASH.js gzip 1.71 kB 1.71 kB
Overall change 1.71 kB 1.71 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
polyfills-HASH.js gzip 39.4 kB 39.4 kB
Overall change 39.4 kB 39.4 kB
Client Pages
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
_app-HASH.js gzip 192 B 193 B N/A
_error-HASH.js gzip 192 B 193 B N/A
amp-HASH.js gzip 513 B 511 B N/A
css-HASH.js gzip 342 B 342 B
dynamic-HASH.js gzip 1.84 kB 1.85 kB N/A
edge-ssr-HASH.js gzip 266 B 266 B
head-HASH.js gzip 364 B 362 B N/A
hooks-HASH.js gzip 392 B 393 B N/A
image-HASH.js gzip 4.43 kB 4.44 kB N/A
index-HASH.js gzip 268 B 268 B
link-HASH.js gzip 2.35 kB 2.34 kB N/A
routerDirect..HASH.js gzip 326 B 327 B N/A
script-HASH.js gzip 395 B 398 B N/A
withRouter-HASH.js gzip 324 B 324 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Overall change 1.31 kB 1.31 kB
Client Build Manifests
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
_buildManifest.js gzip 750 B 748 B N/A
Overall change 0 B 0 B
Rendered Page Sizes
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
index.html gzip 522 B 521 B N/A
link.html gzip 537 B 535 B N/A
withRouter.html gzip 519 B 519 B
Overall change 519 B 519 B
Edge SSR bundle Size Overall increase ⚠️
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
edge-ssr.js gzip 128 kB 128 kB N/A
page.js gzip 200 kB 200 kB ⚠️ +174 B
Overall change 200 kB 200 kB ⚠️ +174 B
Middleware size
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
middleware-b..fest.js gzip 670 B 671 B N/A
middleware-r..fest.js gzip 155 B 156 B N/A
middleware.js gzip 31 kB 31 kB N/A
edge-runtime..pack.js gzip 844 B 844 B
Overall change 844 B 844 B
Next Runtimes Overall increase ⚠️
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
797-experime...dev.js gzip 322 B 322 B
797.runtime.dev.js gzip 314 B 314 B
app-page-exp...dev.js gzip 321 kB 321 kB N/A
app-page-exp..prod.js gzip 126 kB 126 kB
app-page-tur..prod.js gzip 139 kB 139 kB
app-page-tur..prod.js gzip 134 kB 134 kB
app-page.run...dev.js gzip 311 kB 311 kB N/A
app-page.run..prod.js gzip 121 kB 121 kB
app-route-ex...dev.js gzip 36.6 kB 36.8 kB ⚠️ +185 B
app-route-ex..prod.js gzip 24.8 kB 25 kB ⚠️ +142 B
app-route-tu..prod.js gzip 24.8 kB 25 kB ⚠️ +142 B
app-route-tu..prod.js gzip 24.6 kB 24.8 kB ⚠️ +140 B
app-route.ru...dev.js gzip 38.2 kB 38.4 kB ⚠️ +189 B
app-route.ru..prod.js gzip 24.6 kB 24.8 kB ⚠️ +140 B
pages-api-tu..prod.js gzip 9.56 kB 9.56 kB
pages-api.ru...dev.js gzip 11.4 kB 11.4 kB
pages-api.ru..prod.js gzip 9.56 kB 9.56 kB
pages-turbo...prod.js gzip 21.3 kB 21.3 kB
pages.runtim...dev.js gzip 27 kB 27 kB
pages.runtim..prod.js gzip 21.3 kB 21.3 kB
server.runti..prod.js gzip 916 kB 916 kB
Overall change 1.71 MB 1.71 MB ⚠️ +938 B
build cache Overall increase ⚠️
vercel/next.js canary vercel/next.js fix/dedupe-fetch-clone Change
0.pack gzip 2.04 MB 2.04 MB ⚠️ +2.36 kB
index.pack gzip 149 kB 149 kB N/A
Overall change 2.04 MB 2.04 MB ⚠️ +2.36 kB
Diff details
Diff for page.js
@@ -15,7 +15,7 @@
       /***/
     },
 
-    /***/ 5873: /***/ (
+    /***/ 2238: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -30,7 +30,7 @@
         default: () => /* binding */ nHandler,
       });
 
-      // NAMESPACE OBJECT: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-statsEivrGa%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
+      // NAMESPACE OBJECT: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-statsEivrGa%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
       var page_next_edge_ssr_entry_namespaceObject = {};
       __webpack_require__.r(page_next_edge_ssr_entry_namespaceObject);
       __webpack_require__.d(page_next_edge_ssr_entry_namespaceObject, {
@@ -84,43 +84,43 @@
         workUnitAsyncStorage: () => entry_base /* workUnitAsyncStorage */.FP,
       });
 
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/web/globals.js
-      var globals = __webpack_require__(7731);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/web/adapter.js + 3 modules
-      var adapter = __webpack_require__(5815);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/build/webpack/loaders/next-edge-ssr-loader/render.js + 84 modules
-      var render = __webpack_require__(7898);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/lib/incremental-cache/index.js + 4 modules
-      var incremental_cache = __webpack_require__(7696);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/app-render/app-render.js + 68 modules
-      var app_render = __webpack_require__(2818);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/route-modules/app-page/module.compiled.js
-      var module_compiled = __webpack_require__(13);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/route-kind.js
-      var route_kind = __webpack_require__(7930);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/client/components/error-boundary.js
-      var error_boundary = __webpack_require__(9236);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/app-render/entry-base.js + 26 modules
-      var entry_base = __webpack_require__(9215); // ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-statsEivrGa%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/web/globals.js
+      var globals = __webpack_require__(6363);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/web/adapter.js + 3 modules
+      var adapter = __webpack_require__(8671);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/build/webpack/loaders/next-edge-ssr-loader/render.js + 84 modules
+      var render = __webpack_require__(8402);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/lib/incremental-cache/index.js + 4 modules
+      var incremental_cache = __webpack_require__(8360);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/app-render/app-render.js + 68 modules
+      var app_render = __webpack_require__(6186);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/route-modules/app-page/module.compiled.js
+      var module_compiled = __webpack_require__(7349);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/route-kind.js
+      var route_kind = __webpack_require__(4498);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/client/components/error-boundary.js
+      var error_boundary = __webpack_require__(8716);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/app-render/entry-base.js + 26 modules
+      var entry_base = __webpack_require__(2375); // ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/build/webpack/loaders/next-app-loader/index.js?name=app%2Fapp-edge-ssr%2Fpage&page=%2Fapp-edge-ssr%2Fpage&pagePath=private-next-app-dir%2Fapp-edge-ssr%2Fpage.js&appDir=%2Ftmp%2Fnext-statsEivrGa%2Fstats-app%2Fapp&appPaths=%2Fapp-edge-ssr%2Fpage&pageExtensions=tsx&pageExtensions=ts&pageExtensions=jsx&pageExtensions=js&basePath=&assetPrefix=&nextConfigOutput=&flyingShuttle=false&preferredRegion=&middlewareConfig=e30%3D!./app/app-edge-ssr/page.js?__next_edge_ssr_entry__
       const module0 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 577)
+          __webpack_require__.bind(__webpack_require__, 2177)
         );
       const module1 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 2160)
+          __webpack_require__.bind(__webpack_require__, 104)
         );
       const module2 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 7689)
+          __webpack_require__.bind(__webpack_require__, 9905)
         );
       const module3 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 1654)
+          __webpack_require__.bind(__webpack_require__, 6398)
         );
       const page4 = () =>
         Promise.resolve(/* import() eager */).then(
-          __webpack_require__.bind(__webpack_require__, 5707)
+          __webpack_require__.bind(__webpack_require__, 8651)
         );
 
       // We inject the tree and pages here so that we can use them in the route
@@ -188,12 +188,12 @@
       });
 
       //# sourceMappingURL=app-page.js.map
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/lib/page-types.js
-      var page_types = __webpack_require__(8929);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/app-render/encryption-utils.js
-      var encryption_utils = __webpack_require__(6432);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/esm/server/app-render/action-utils.js
-      var action_utils = __webpack_require__(4451); // ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js?{"absolute500Path":"","absoluteAppPath":"next/dist/pages/_app","absoluteDocumentPath":"next/dist/pages/_document","absoluteErrorPath":"next/dist/pages/_error","absolutePagePath":"private-next-app-dir/app-edge-ssr/page.js","dev":false,"isServerComponent":true,"page":"/app-edge-ssr/page","stringifiedConfig":"eyJlbnYiOnt9LCJlc2xpbnQiOnsiaWdub3JlRHVyaW5nQnVpbGRzIjpmYWxzZX0sInR5cGVzY3JpcHQiOnsiaWdub3JlQnVpbGRFcnJvcnMiOmZhbHNlLCJ0c2NvbmZpZ1BhdGgiOiJ0c2NvbmZpZy5qc29uIn0sImRpc3REaXIiOiIubmV4dCIsImNsZWFuRGlzdERpciI6dHJ1ZSwiYXNzZXRQcmVmaXgiOiIiLCJjYWNoZU1heE1lbW9yeVNpemUiOjUyNDI4ODAwLCJjb25maWdPcmlnaW4iOiJuZXh0LmNvbmZpZy5qcyIsInVzZUZpbGVTeXN0ZW1QdWJsaWNSb3V0ZXMiOnRydWUsImdlbmVyYXRlRXRhZ3MiOnRydWUsInBhZ2VFeHRlbnNpb25zIjpbInRzeCIsInRzIiwianN4IiwianMiXSwicG93ZXJlZEJ5SGVhZGVyIjp0cnVlLCJjb21wcmVzcyI6dHJ1ZSwiaW1hZ2VzIjp7ImRldmljZVNpemVzIjpbNjQwLDc1MCw4MjgsMTA4MCw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JnBhZ2VFeHRlbnNpb25zPXRzJnBhZ2VFeHRlbnNpb25zPWpzeCZwYWdlRXh0ZW5zaW9ucz1qcyZiYXNlUGF0aD0mYXNzZXRQcmVmaXg9Jm5leHRDb25maWdPdXRwdXQ9JmZseWluZ1NodXR0bGU9ZmFsc2UmcHJlZmVycmVkUmVnaW9uPSZtaWRkbGV3YXJlQ29uZmlnPWUzMCUzRCE=","sriEnabled":false,"middlewareConfig":"e30=","cacheHandlers":"{}"}!
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/lib/page-types.js
+      var page_types = __webpack_require__(4233);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/app-render/encryption-utils.js
+      var encryption_utils = __webpack_require__(952);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/esm/server/app-render/action-utils.js
+      var action_utils = __webpack_require__(1963); // ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/dist/build/webpack/loaders/next-edge-ssr-loader/index.js?{"absolute500Path":"","absoluteAppPath":"next/dist/pages/_app","absoluteDocumentPath":"next/dist/pages/_document","absoluteErrorPath":"next/dist/pages/_error","absolutePagePath":"private-next-app-dir/app-edge-ssr/page.js","dev":false,"isServerComponent":true,"page":"/app-edge-ssr/page","stringifiedConfig":"eyJlbnYiOnt9LCJlc2xpbnQiOnsiaWdub3JlRHVyaW5nQnVpbGRzIjpmYWxzZX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VwZW5kZW5jaWVzIjpmYWxzZSwiY29uZmlnRmlsZSI6Ii90bXAvbmV4dC1zdGF0c0VpdnJHYS9zdGF0cy1hcHAvbmV4dC5jb25maWcuanMiLCJjb25maWdGaWxlTmFtZSI6Im5leHQuY29uZmlnLmpzIn0=","pagesType":"app","appDirLoader":"bmV4dC1hcHAtbG9hZGVyP25hbWU9YXBwJTJGYXBwLWVkZ2Utc3NyJTJGcGFnZSZwYWdlPSUyRmFwcC1lZGdlLXNzciUyRnBhZ2UmcGFnZVBhdGg9cHJpdmF0ZS1uZXh0LWFwcC1kaXIlMkZhcHAtZWRnZS1zc3IlMkZwYWdlLmpzJmFwcERpcj0lMkZ0bXAlMkZuZXh0LXN0YXRzRWl2ckdhJTJGc3RhdHMtYXBwJTJGYXBwJmFwcFBhdGhzPSUyRmFwcC1lZGdlLXNzciUyRnBhZ2UmcGFnZUV4dGVuc2lvbnM9dHN4JnBhZ2VFeHRlbnNpb25zPXRzJnBhZ2VFeHRlbnNpb25zPWpzeCZwYWdlRXh0ZW5zaW9ucz1qcyZiYXNlUGF0aD0mYXNzZXRQcmVmaXg9Jm5leHRDb25maWdPdXRwdXQ9JmZseWluZ1NodXR0bGU9ZmFsc2UmcHJlZmVycmVkUmVnaW9uPSZtaWRkbGV3YXJlQ29uZmlnPWUzMCUzRCE=","sriEnabled":false,"middlewareConfig":"e30=","cacheHandlers":"{}"}!
       var _self___RSC_MANIFEST;
 
       const incrementalCacheHandler = null;
@@ -480,105 +480,105 @@
       /***/
     },
 
-    /***/ 2984: /***/ (
+    /***/ 4920: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 5140)
+        __webpack_require__.bind(__webpack_require__, 4364)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 7334)
+        __webpack_require__.bind(__webpack_require__, 1886)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 2032)
+        __webpack_require__.bind(__webpack_require__, 1832)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 9236)
+        __webpack_require__.bind(__webpack_require__, 8716)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 2951)
+        __webpack_require__.bind(__webpack_require__, 9487)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 9823)
+        __webpack_require__.bind(__webpack_require__, 6007)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 7457)
+        __webpack_require__.bind(__webpack_require__, 5286)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 5188)
+        __webpack_require__.bind(__webpack_require__, 4428)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 3520)
+        __webpack_require__.bind(__webpack_require__, 318)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 2445)
+        __webpack_require__.bind(__webpack_require__, 8453)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 9372)
+        __webpack_require__.bind(__webpack_require__, 244)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 8934)
+        __webpack_require__.bind(__webpack_require__, 9182)
       );
 
       /***/
     },
 
-    /***/ 2712: /***/ (
+    /***/ 1768: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 8081)
+        __webpack_require__.bind(__webpack_require__, 3977)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 2558)
+        __webpack_require__.bind(__webpack_require__, 9174)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 5088)
+        __webpack_require__.bind(__webpack_require__, 3960)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 5076)
+        __webpack_require__.bind(__webpack_require__, 5644)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 3247)
+        __webpack_require__.bind(__webpack_require__, 3815)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 8311)
+        __webpack_require__.bind(__webpack_require__, 6559)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 8545)
+        __webpack_require__.bind(__webpack_require__, 8841)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 347)
+        __webpack_require__.bind(__webpack_require__, 3907)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6766)
+        __webpack_require__.bind(__webpack_require__, 9350)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6493)
+        __webpack_require__.bind(__webpack_require__, 9429)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 4604)
+        __webpack_require__.bind(__webpack_require__, 1476)
       );
       Promise.resolve(/* import() eager */).then(
-        __webpack_require__.bind(__webpack_require__, 6542)
+        __webpack_require__.bind(__webpack_require__, 9782)
       );
 
       /***/
     },
 
-    /***/ 4250: /***/ () => {
+    /***/ 3618: /***/ () => {
       /***/
     },
 
-    /***/ 4418: /***/ () => {
+    /***/ 3002: /***/ () => {
       /***/
     },
 
-    /***/ 5707: /***/ (
+    /***/ 8651: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -598,7 +598,7 @@
       /***/
     },
 
-    /***/ 577: /***/ (
+    /***/ 2177: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -610,7 +610,7 @@
         /* harmony export */
       });
       /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ =
-        __webpack_require__(6275);
+        __webpack_require__(315);
 
       function RootLayout({ children }) {
         return /*#__PURE__*/ (0,
@@ -629,7 +629,7 @@
     // webpackRuntimeModules
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
-    /******/ __webpack_require__.O(0, [458, 97], () => __webpack_exec__(5873));
+    /******/ __webpack_require__.O(0, [990, 649], () => __webpack_exec__(2238));
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ (_ENTRIES = typeof _ENTRIES === "undefined" ? {} : _ENTRIES)[
       "middleware_app/app-edge-ssr/page"
Diff for middleware.js

Diff too large to display

Diff for edge-ssr.js

Diff too large to display

Diff for image-HASH.js
@@ -1,7 +1,7 @@
 (self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([
   [2983],
   {
-    /***/ 8993: /***/ (
+    /***/ 1273: /***/ (
       __unused_webpack_module,
       __unused_webpack_exports,
       __webpack_require__
@@ -9,7 +9,7 @@
       (window.__NEXT_P = window.__NEXT_P || []).push([
         "/image",
         function () {
-          return __webpack_require__(5669);
+          return __webpack_require__(6644);
         },
       ]);
       if (false) {
@@ -18,7 +18,7 @@
       /***/
     },
 
-    /***/ 8889: /***/ (module, exports, __webpack_require__) => {
+    /***/ 5305: /***/ (module, exports, __webpack_require__) => {
       "use strict";
       /* __next_internal_client_entry_do_not_use__  cjs */
       Object.defineProperty(exports, "__esModule", {
@@ -40,17 +40,17 @@
         __webpack_require__(181)
       );
       const _head = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(8612)
+        __webpack_require__(4516)
       );
-      const _getimgprops = __webpack_require__(8333);
-      const _imageconfig = __webpack_require__(4080);
-      const _imageconfigcontextsharedruntime = __webpack_require__(1418);
-      const _warnonce = __webpack_require__(5240);
-      const _routercontextsharedruntime = __webpack_require__(6179);
+      const _getimgprops = __webpack_require__(6845);
+      const _imageconfig = __webpack_require__(7728);
+      const _imageconfigcontextsharedruntime = __webpack_require__(8746);
+      const _warnonce = __webpack_require__(5832);
+      const _routercontextsharedruntime = __webpack_require__(1859);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(4289)
+        __webpack_require__(7937)
       );
-      const _usemergedref = __webpack_require__(6958);
+      const _usemergedref = __webpack_require__(4321);
       // This is replaced by webpack define plugin
       const configEnv = {
         deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
@@ -371,7 +371,7 @@
       /***/
     },
 
-    /***/ 6958: /***/ (module, exports, __webpack_require__) => {
+    /***/ 4321: /***/ (module, exports, __webpack_require__) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -432,7 +432,7 @@
       /***/
     },
 
-    /***/ 8333: /***/ (
+    /***/ 6845: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -448,9 +448,9 @@
           return getImgProps;
         },
       });
-      const _warnonce = __webpack_require__(5240);
-      const _imageblursvg = __webpack_require__(1303);
-      const _imageconfig = __webpack_require__(4080);
+      const _warnonce = __webpack_require__(5832);
+      const _imageblursvg = __webpack_require__(8884);
+      const _imageconfig = __webpack_require__(7728);
       const VALID_LOADING_VALUES =
         /* unused pure expression or super */ null && [
           "lazy",
@@ -824,7 +824,7 @@
       /***/
     },
 
-    /***/ 1303: /***/ (__unused_webpack_module, exports) => {
+    /***/ 8884: /***/ (__unused_webpack_module, exports) => {
       "use strict";
       /**
        * A shared function, used on both client and server, to generate a SVG blur placeholder.
@@ -879,7 +879,7 @@
       /***/
     },
 
-    /***/ 1257: /***/ (
+    /***/ 2809: /***/ (
       __unused_webpack_module,
       exports,
       __webpack_require__
@@ -906,10 +906,10 @@
         },
       });
       const _interop_require_default = __webpack_require__(1739);
-      const _getimgprops = __webpack_require__(8333);
-      const _imagecomponent = __webpack_require__(8889);
+      const _getimgprops = __webpack_require__(6845);
+      const _imagecomponent = __webpack_require__(5305);
       const _imageloader = /*#__PURE__*/ _interop_require_default._(
-        __webpack_require__(4289)
+        __webpack_require__(7937)
       );
       function getImageProps(imgProps) {
         const { props } = (0, _getimgprops.getImgProps)(imgProps, {
@@ -941,7 +941,7 @@
       /***/
     },
 
-    /***/ 4289: /***/ (__unused_webpack_module, exports) => {
+    /***/ 7937: /***/ (__unused_webpack_module, exports) => {
       "use strict";
 
       Object.defineProperty(exports, "__esModule", {
@@ -976,7 +976,7 @@
       /***/
     },
 
-    /***/ 5669: /***/ (
+    /***/ 6644: /***/ (
       __unused_webpack_module,
       __webpack_exports__,
       __webpack_require__
@@ -993,8 +993,8 @@
 
       // EXTERNAL MODULE: ./node_modules/.pnpm/react@19.0.0-rc-1b1283ad-20241203/node_modules/react/jsx-runtime.js
       var jsx_runtime = __webpack_require__(8801);
-      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+main-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bxsflmqknft2sza5tqrdxfucwa/node_modules/next/image.js
-      var next_image = __webpack_require__(7620);
+      // EXTERNAL MODULE: ./node_modules/.pnpm/next@file+..+diff-repo+packages+next+next-packed.tgz_react-dom@19.0.0-rc-1b1283ad-20241203_re_bifztafxodizwp42bbdx5l6mjm/node_modules/next/image.js
+      var next_image = __webpack_require__(3836);
       var image_default = /*#__PURE__*/ __webpack_require__.n(next_image); // ./pages/nextjs.png
       /* harmony default export */ const nextjs = {
         src: "/_next/static/media/nextjs.cae0b805.png",
@@ -1024,12 +1024,12 @@
       /***/
     },
 
-    /***/ 7620: /***/ (
+    /***/ 3836: /***/ (
       module,
       __unused_webpack_exports,
       __webpack_require__
     ) => {
-      module.exports = __webpack_require__(1257);
+      module.exports = __webpack_require__(2809);
 
       /***/
     },
@@ -1039,7 +1039,7 @@
     /******/ var __webpack_exec__ = (moduleId) =>
       __webpack_require__((__webpack_require__.s = moduleId));
     /******/ __webpack_require__.O(0, [636, 6593, 8792], () =>
-      __webpack_exec__(8993)
+      __webpack_exec__(1273)
     );
     /******/ var __webpack_exports__ = __webpack_require__.O();
     /******/ _N_E = __webpack_exports__;
Diff for 3003-HASH.js

Diff too large to display

Diff for main-HASH.js

Diff too large to display

Diff for app-route-ex..ntime.dev.js

Diff too large to display

Diff for app-route-ex..time.prod.js

Diff too large to display

Diff for app-route-tu..time.prod.js

Diff too large to display

Diff for app-route-tu..time.prod.js

Diff too large to display

Diff for app-route.runtime.dev.js

Diff too large to display

Diff for app-route.ru..time.prod.js

Diff too large to display

Commit: 8c83edb

@ijjk ijjk added create-next-app Related to our CLI tool for quickly starting a new Next.js application. Documentation Related to Next.js' official documentation. examples Issue was opened via the examples template. Font (next/font) Related to Next.js Font Optimization. tests Turbopack Related to Turbopack with Next.js. labels Nov 28, 2024
@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch 2 times, most recently from 0dc6373 to fa638ca Compare November 28, 2024 00:15
Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch from 63c2645 to fa8098e Compare December 3, 2024 23:50
@wyattjoh wyattjoh marked this pull request as ready for review December 4, 2024 00:17
@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch from fa8098e to 842a664 Compare December 4, 2024 00:18
@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch from 842a664 to 5456ca2 Compare December 4, 2024 02:04
@wyattjoh wyattjoh requested a review from gnoff December 4, 2024 02:26
}
match = originalFetch(resource, options)
cacheEntries.push(cacheKey, match)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So it turns out that var args push is slower than non-var-args push in some runtimes so pushing an array appears faster. But the fastest is to call push twice (or after this change, three times)

Copy link
Contributor

@gnoff gnoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only thing I think we maybe should do still is leave comments in the locations we use cloneResponse to indicate why we aren't just calling .clone(). We should also remind our future selves to remove this code once we no longer support a version that has the underlying bug if we can ever pinpoint what it is

@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch 3 times, most recently from 9a3f912 to 3855448 Compare December 4, 2024 17:09
@wyattjoh wyattjoh force-pushed the fix/dedupe-fetch-clone branch from 3855448 to 8c83edb Compare December 4, 2024 18:09
@wyattjoh wyattjoh merged commit 0027c84 into canary Dec 4, 2024
105 of 112 checks passed
@wyattjoh wyattjoh deleted the fix/dedupe-fetch-clone branch December 4, 2024 19:02
wyattjoh added a commit that referenced this pull request Dec 4, 2024
@wyattjoh wyattjoh added the Backport Marking a PR as ready for backporting for the next stable version. label Dec 4, 2024
wyattjoh added a commit that referenced this pull request Dec 4, 2024
<!-- Thanks for opening a PR! Your contribution is much appreciated.
To make sure your PR is handled as smoothly as possible we request that
you follow the checklist sections below.
Choose the right checklist for the change(s) that you're making:

## For Contributors

### Improving Documentation

- Run `pnpm prettier-fix` to fix formatting issues before opening the
PR.
- Read the Docs Contribution Guide to ensure your contribution follows
the docs guidelines:
https://nextjs.org/docs/community/contribution-guide

### Adding or Updating Examples

- The "examples guidelines" are followed from our contributing doc
https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md
- Make sure the linting passes by running `pnpm build && pnpm lint`. See
https://github.com/vercel/next.js/blob/canary/contributing/repository/linting.md

### Fixing a bug

- Related issues linked using `fixes #number`
- Tests added. See:
https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md

### Adding a feature

- Implements an existing feature request or RFC. Make sure the feature
request has been accepted for implementation before opening a PR. (A
discussion must be opened, see
https://github.com/vercel/next.js/discussions/new?category=ideas)
- Related issues/discussions are linked using `fixes #number`
- e2e tests added
(https://github.com/vercel/next.js/blob/canary/contributing/core/testing.md#writing-tests-for-nextjs)
- Documentation added
- Telemetry added. In case of a feature if it's used or not.
- Errors have a helpful link attached, see
https://github.com/vercel/next.js/blob/canary/contributing.md


## For Maintainers

- Minimal description (aim for explaining to someone not on the team to
understand the PR)
- When linking to a Slack thread, you might want to share details of the
conclusion
- Link both the Linear (Fixes NEXT-xxx) and the GitHub issues
- Add review comments if necessary to explain to the reviewer the logic
behind a change

### What?

### Why?

### How?

Closes NEXT-
Fixes #

-->

This is a backport of #73274 which
resolves a bug with response cloning.
@sannajammeh
Copy link
Contributor

only thing I think we maybe should do still is leave comments in the locations we use cloneResponse to indicate why we aren't just calling .clone(). We should also remind our future selves to remove this code once we no longer support a version that has the underlying bug if we can ever pinpoint what it is

This has already been pinpointed and several community members have attempted to flag this down both in Pro support chats on Vercel and on discussions in this repository. @ tagging Vercel members here on GitHub seems to yield no results.

It presents itself in a recent release of Node 20.17.

See #69635

@wyattjoh
Copy link
Member Author

wyattjoh commented Dec 4, 2024

@sannajammeh we have not yet isolated the specific cause within undici that is causing this specific regression, hence this pull request which bypasses the issue until we have a more permanent platform-centric fix on undici.

dio added a commit to khutwah/web that referenced this pull request Dec 10, 2024
To pick up vercel/next.js#73274.

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
dio added a commit to khutwah/web that referenced this pull request Dec 10, 2024
To pick up vercel/next.js#73274.

Signed-off-by: Dhi Aurrahman <dio@rockybars.com>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 19, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Backport Marking a PR as ready for backporting for the next stable version. create-next-app Related to our CLI tool for quickly starting a new Next.js application. created-by: Next.js team PRs by the Next.js team. Documentation Related to Next.js' official documentation. examples Issue was opened via the examples template. Font (next/font) Related to Next.js Font Optimization. locked tests Turbopack Related to Turbopack with Next.js. type: next
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants