-
Notifications
You must be signed in to change notification settings - Fork 94
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
[ui5-middleware-ui5] Not working with server option --h2 #916
Comments
Thx @faow for the issue, I'll take a look once I have a bit of free time... |
@faow - short update - the problem is the way how we hook into the express application and in case of https is being used, the original express app is wrapped into a spdy app for which the listen call isn't overridden. I'm not sure yet whether this can work at all, as there is no real possibility to intercept the spdy listen call from outside... 😢 |
@petermuessig |
@faow - ok, good to know - I'm still looking into the topic - currently searching for the best possible way to retrieve the necessary information when the UI5 tooling is putting |
There seems to be no possibility to overcome that issue. The following lines in the UI5 tooling override the https://github.com/SAP/ui5-server/blob/main/lib/server.js#L180-L182 IMO, the only way to support this development middleware also for https is that the UI5 tooling exposes the server. I need to follow up on this with @RandomByte and @matz3 |
@RandomByte @matz3 - is it possible to provide access to the server with the next major upgrade of the UI5 tooling for the h2 case? |
We hope to implement the "component type" in UI5 Tooling sometime soon which should hopefully make this middleware obsolete: SAP/ui5-tooling#45 In general, we would like to provide specific APIs for custom middleware to achieve what they want. By exposing the underlying server instance we loose control over which middleware is handling which request and can't guarantee compatibility anymore. So let's rather try and discuss whether we can solve such use cases through specific API provided by ui5-server 👍 |
Closing, as @RandomByte suggest a better solution for this. |
Describe the bug
If you add the parameter --h2 to the server, the path is not mounted.
To Reproduce
Steps to reproduce the behavior:
The text was updated successfully, but these errors were encountered: