You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Failed to find Response internal state key" Warning in Node.js v24.3.0 due to undici changes #254
Describe the bug
When using @hono/node-server@1.14.1 with Node.js v24.3.0, a warning is logged: "Failed to find Response internal state key." This occurs in getInternalBody because it attempts to access Symbol(state) on Response objects, which is not exposed by undici in Node.js v24.3.0 (it uses a private #state field instead). Despite the warning, responses are still served correctly, but the log noise could indicate deeper compatibility issues. After some digging seems is caused by this PR
To Reproduce
Set up a Hono server with @hono/node-server@1.14.1 and Node.js v24.3.0. (with pnpm create hono@latest)
Run the server (pnpm dev with tsx watch src/index.ts).
Observe the warning in the console:
Failed to find Response internal state key
Activity
usualoma commentedon Jul 19, 2025
Hi @Dantescur, thank you for your feedback.
This issue has been fixed in #242 and will not happen in releases https://github.com/honojs/node-server/releases/tag/v1.14.2 and later. Please try updating.
Dantescur commentedon Jul 19, 2025
Hi @usualoma
Confirmed, the warning is gone after updating to v1.14.2. Thanks for the great job!