Closed bruceharrison1984 closed 12 months ago
I finally got to dig into this, and it is simply due to getSetCookie
being a somewhat recent addition. Upgrading node
immediately resolved the issue.
Per your recommendation @yusukebe
The Hono node adapter does not support v18.6.0. If you want to use "v18.x", use v18.14.1 or higher.
https://github.com/honojs/node-server/issues/58
I really like what you're building here(I had started something very similar until I found yours), and I'll try to stop submitting issues without more due diligence.
Trying to set a cookie during local development causes the server to terminate with an error. Deploying the same code Cloudflare, the cookie is created and no error is thrown. So this only happens locally.
Error:
Manually trying to set the cookie also fails with the same error:
Directly setting a header doesn't cause the app to crash, but only if no cookie is created. So it appears to be directly related to setting cookies.