Skip to content

Undici fetch hangs forever when concurrently fetching many requests, using node-fetch works #1721

@remorses

Description

@remorses

Describe the bug

Using unframer a tool that fetches js modules and bundles them with esbuild, hangs forever in Stackblitz because fetch calls never finish

From my testing this is caused by fetch, if i switch to using node-fetch, the command ends succcessfully.

Link to the blitz that caused the error

https://stackblitz.com/edit/8rmjs6tg-o7esuv4p?file=package.json&showSidebar=0

Steps to reproduce

  1. install
  2. pnpm framer

Expected behavior

fetch finishes successfully

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 132.0.0.0
Major version = 132
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 105070955,
  "usedJSHeapSize": 100419475,
  "jsHeapSizeLimit": 4294705152
}
Hash = d20a0a75

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions