-
Notifications
You must be signed in to change notification settings - Fork 95
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-simpleproxy] usage of deprecated _headers call from express-proxy #816
Comments
petermuessig
added a commit
that referenced
this issue
Aug 31, 2023
The `ui5-middleware-cfdestination` and `ui5-middleware-simpleproxy` are now using the `http-proxy-middleware` instead of the former `express-http-proxy` to support the following features: * Support for corporate proxy using env variables (see more details https://www.npmjs.com/package/proxy-from-env#environment-variables) * Support redirects using the `autoRewrite` option to handle UAA * Preparation for websocket support to be able to proxy websocket requrests (#557) * Get rid of deprecated `_headers` call due to `express-http-proxy` * Improved test-cases for the `cfdestination` middleware * Added test-cases for the `simpleproxy` middleware * Script to generate self-signed certificates automatically added Fixes #748 - corporate proxy issue Fixes #817 - UAA issues Fixes #816 - deprecated `_headers` call
petermuessig
added a commit
that referenced
this issue
Aug 31, 2023
The `ui5-middleware-cfdestination` and `ui5-middleware-simpleproxy` are now using the `http-proxy-middleware` instead of the former `express-http-proxy` to support the following features: * Support for corporate proxy using env variables (see more details https://www.npmjs.com/package/proxy-from-env#environment-variables) * Support redirects using the `autoRewrite` option to handle UAA * Preparation for websocket support to be able to proxy websocket requrests (#557) * Get rid of deprecated `_headers` call due to `express-http-proxy` * Improved test-cases for the `cfdestination` middleware * Added test-cases for the `simpleproxy` middleware * Script to generate self-signed certificates automatically added Fixes #748 - corporate proxy issue Fixes #817 - UAA issues Fixes #816 - deprecated `_headers` call
petermuessig
added a commit
that referenced
this issue
Aug 31, 2023
The `ui5-middleware-cfdestination` and `ui5-middleware-simpleproxy` are now using the `http-proxy-middleware` instead of the former `express-http-proxy` to support the following features: * Support for corporate proxy using env variables (see more details https://www.npmjs.com/package/proxy-from-env#environment-variables) * Support redirects using the `autoRewrite` option to handle UAA * Preparation for websocket support to be able to proxy websocket requrests (#557) * Get rid of deprecated `_headers` call due to `express-http-proxy` * Improved test-cases for the `cfdestination` middleware * Added test-cases for the `simpleproxy` middleware * Script to generate self-signed certificates automatically added Fixes #748 - corporate proxy issue Fixes #817 - UAA issues Fixes #816 - deprecated `_headers` call
petermuessig
added a commit
that referenced
this issue
Aug 31, 2023
The `ui5-middleware-cfdestination` and `ui5-middleware-simpleproxy` are now using the `http-proxy-middleware` instead of the former `express-http-proxy` to support the following features: * Support for corporate proxy using env variables (see more details https://www.npmjs.com/package/proxy-from-env#environment-variables) * Support redirects using the `autoRewrite` option to handle UAA * Preparation for websocket support to be able to proxy websocket requrests (#557) * Get rid of deprecated `_headers` call due to `express-http-proxy` * Improved test-cases for the `cfdestination` middleware * Added test-cases for the `simpleproxy` middleware * Script to generate self-signed certificates automatically added Fixes #748 - corporate proxy issue Fixes #817 - UAA issues Fixes #816 - deprecated `_headers` call
Should be fixed with |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Using the ui5-middleware-simpleproxy to connect to another backend system (in this case a SpringBoot system) leads to warnings related to a deprecated function/variable call.
(node:30408) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated (Use node --trace-deprecation ... to show where the warning was created)
Tracing the error using
--trace-deprecation
leads to the express-http-proxy package which is used as a basis for ui5-middleware-simpleproxy:While this looks like a problem with express-http-proxy at first, the issue itself has been solved in 2019, which is why I'm irritated that the warning still shows as of today.
Steps to reproduce the behavior
Project configuration
UI5.yaml:
Package.json
Additional Information
[email protected]
node v18.17.0
The text was updated successfully, but these errors were encountered: