Skip to content

Rendering error on routes that fetch data with revalidate #69971

@orinokai

Description

@orinokai

Link to the code that reproduces this issue

https://github.com/orinokai/test-next-cache-invalidation

To Reproduce

  1. Start the application with next start
  2. Navigate to the index page
  3. Observe the following error in the console: TypeError: Response.clone: Body has already been consumed.
  4. (May or may not be related, but the following behaviour also started in the same canary version: continually reload the page and observe that, after the 5s TTL, there is a 4-5s delay before a subsequent request will trigger a re-render)

Current vs. Expected behavior

Following the steps above, I would expect the page to render without errors and for the page to be re-rendered ~5s after the last render when continuously reloading in a browser

Provide environment information

Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 23.6.0: Mon Jul 29 21:14:30 PDT 2024; root:xnu-10063.141.2~1/RELEASE_ARM64_T6000
  Available memory (MB): 32768
  Available CPU cores: 10
Binaries:
  Node: 20.9.0
  npm: 10.1.0
  Yarn: 1.22.22
  pnpm: 8.15.5
Relevant Packages:
  next: 15.0.0-canary.149 // Latest available version is detected (15.0.0-canary.149).
  eslint-config-next: 15.0.0-canary.149
  react: 19.0.0-rc-7771d3a7-20240827
  react-dom: 19.0.0-rc-7771d3a7-20240827
  typescript: 5.5.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next start (local)

Additional context

I tested my repro against different canary versions and the first one that introduced the bug was [email protected]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue was opened via the bug report template.locked

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions