Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does hapi v17.x actually support Node.js 12? #4093

Closed
watson opened this issue Apr 20, 2020 · 1 comment
Closed

Does hapi v17.x actually support Node.js 12? #4093

watson opened this issue Apr 20, 2020 · 1 comment
Assignees
Labels
support Questions, discussions, and general support

Comments

@watson
Copy link

watson commented Apr 20, 2020

Support plan

  • which support plan is this issue covered by? (e.g. Community, Core, Plus, or Enterprise): Community
  • is this issue currently blocking your project? (yes/no): no
  • is this issue affecting a production system? (yes/no): no

Context

  • node version: 12.16.2
  • module version: 17.6.0
  • environment (e.g. node, browser, native): node
  • used with (e.g. hapi application, another framework, standalone, ...): hapi application
  • any other relevant information: none

How can we help?

According to #3898, in Node.js 11+ the close event on incoming requests will trigger a disconnect from hapi in versions of hapi lower than v18. But according to the hapi Module Status page, version 17 should support Node.js 12.

I discovered this because I'm upgrading a hapi 17.6.0 project from Node.js 10 to Node.js 12 and all of a sudden all these disconnect error events started happening.

What I already tried:

  • I tried to manually port the commit a3a5ca9 and 03e03dc to a local fork of v17.6.0, but that still didn't make it work 100%
  • I tried to upgrade to v17.9.2 to see if this issue had been fixed in a newer 17.x version, but no dice.

Questions:

  1. Am I correct in assuming that ^17.6.0 isn't compatible with Node.js 12?
  2. If so, how come the Module Status page says so?
  3. Is there a workaround that doesn't involve upgrading to v18.x? (I will upgrade eventually, but it's a huge task, that I'd rather hold off on until after the Node.js upgrade)
@watson watson added the support Questions, discussions, and general support label Apr 20, 2020
@hueniverse hueniverse self-assigned this Apr 24, 2020
@hueniverse
Copy link
Contributor

This was a bug in hapi 17 under node 12. It doesn't mean the combination doesn't work, just that it will generate a lot more noise - it's a bug, not a breaking change. This bug in v17 is not going to be fixed because the version is no longer supported. If you need this fixed under v17, your options are to fork and figure out a patch yourself (which you have started) or get a commercial support plan that includes v17.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Questions, discussions, and general support
Projects
None yet
Development

No branches or pull requests

2 participants