Skip to content

fix: Node.js v24 crash — 'Failed to find Response internal state key' #1604

@fede-kamel

Description

@fede-kamel

Problem

Running the gateway on Node.js v24 produces this error and crashes the server process:

Failed to find Response internal state key

This affects the pre-push hook (npm run build && node start-test.js) and the server itself. The error is intermittent — sometimes the server boots successfully, sometimes it crashes immediately.

Root Cause

Node.js v24 ships with a newer version of Undici that changed how Response internal state is accessed (nodejs/undici@45dceeaf). The installed @hono/node-server@1.13.5 does not handle this change.

This was reported and fixed upstream:

Current State

// package.json
"@hono/node-server": "^1.3.3"   // resolves to 1.13.5

Fix

Update the dependency:

npm install @hono/node-server@^1.14.2

Or simply run npm update @hono/node-server — the existing ^1.3.3 semver range already allows 1.14.x.

Reproduction

node --version   # v24.x
npm run build && node start-test.js   # crashes with "Failed to find Response internal state key"

Works fine on Node.js v22 and earlier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions