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.
Problem
Running the gateway on Node.js v24 produces this error and crashes the server process:
This affects the
pre-pushhook (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
Responseinternal state is accessed (nodejs/undici@45dceeaf). The installed@hono/node-server@1.13.5does not handle this change.This was reported and fixed upstream:
@hono/node-server@1.14.2Current State
Fix
Update the dependency:
Or simply run
npm update @hono/node-server— the existing^1.3.3semver range already allows 1.14.x.Reproduction
Works fine on Node.js v22 and earlier.