-
Notifications
You must be signed in to change notification settings - Fork 71
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
Node 12.8.0 and --h2 option leads to crash #333
Comments
I opened the ticket here to document this behavior and to suggest the workaround to fallback to Node 10.x when you need H2 support of the UI5 server. With Node 10.x it works properly. If you are using homebrew you can switch back to an older version like this: When switching back to Node 12.x you need to reinstall node, a simple unlink and link doesn't work here properly as npm, npx, ... are not re-linked properly. Use the following command then: I don't know yet, whether we can fix this on UI5 tooling side. Needs investigation what goes wrong here. maybe someone from the community also has an idea on that |
Semms to be an issue with the |
This is a known issue with spdy. Related issue: https://github.com/SAP/ui5-server/issues/77 Express will eventually support nodes native http/2 implementation in Express v5 (no eta): expressjs/express#3730 I recently looked into other alternatives while working on the proxy PoC but couldn't a valid one. As you said, workaround is to use Node 10. You can easily switch between Node versions using nvm. |
+1 on this. Unfortunately Express has still not addressed this issue in their latest alpha release! expressjs/express#2761 contains a good summary of the situation. |
The upstream Now the current master supports HTTP/2 with all current Node.js releases. For the UI5 CLI, this dependency update will be released with v2.0.0 next week. This only requires an in-range dependency update of handle-thing. @kristian your project should only need to update any package-lock.json to resolve this issue. |
cheer Very nice! Thanks for the update @RandomByte! |
👍 👍 |
Resolved in |
👍 Works, thanks! |
Expected Behavior
ui5 serve --h2
works without error with Node 12.8.0.Current Behavior
When running
ui5 serve --h2
with Node 12.8.0 the Node application immediately crashes when trying to access resources from the server. The error is a RangeError in some internals - not directly related to the UI5 tooling.Steps to reproduce the issue
ui5 serve --h2
on any UI5 project with any UI5 tooling version supporting h2Context
ui5 --version
when using the CLI):1.4.3
but also happens with1.7.0
12.8.0
6.10.3
MacOS
Affected components (if known)
Log Output / Stack Trace
The text was updated successfully, but these errors were encountered: