-
Notifications
You must be signed in to change notification settings - Fork 852
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
camelcase requirement causes uncaught exception error with version 1.1.0 of http-proxy-middleware #513
Comments
Thanks for reporting. //cc @TrySound |
I'm not a developer of the application so I'm not intimately acquainted with what we are calling that could be causing this in the backend. It seems to result from the introduction of this commit https://github.com/chimurai/http-proxy-middleware/pull/507/files which causes the application to pull down the I have a snapshot of the application in the working state and in the broken state and the only difference is the upgrade to 1.1.0 of http-proxy-middleware and the introduction of the camelcase 6.2.0 dependency. |
I'm wondering if this piece of code causes the issue:
|
Can you give a try with
If that doesn't help it would be helpful if you can share you proxy configuration:
|
These were basically the conversions done internally: https://npm.runkit.com/camelcase
|
Seems to work. const wsProxy = createProxyMiddleware('/', {
target: 'ws://echo.websocket.org',
changeOrigin: true, // for vhosted sites, changes host header to match to target's host
}); |
@chimurai Hi, I just got hit by the exact same issue here in one of my applications (cf. jens-maus/RaspberryMatic#1087 (comment)) and I wonder if you have any plans to quickly release a minor official fix update to npm during the next days because my current build environment always grabs the latest version of |
@jens-maus Which node version do you use? |
12.22.1 |
Fix was already published in alpha version: Was waiting for a confirmation of the hotfix before publishing the final version, since no reproducible example was provided. @jens-maus Would be great if you could give a try with |
published |
I just could test the latest 1.1.1 version and the issue is definitely fixed in that version. Thanks! |
Thanks for verifying the fix @jens-maus! (Sorry for the inconvenience.) Although not an issue anymore in |
@chimurai Thanks for taking care of this. |
Following the upgrade to v1.1.0 of http-proxy-middleware, my application started spamming uncaught exception errors during to an invalid regular expression:
/[_.\- ]+([\p{Alpha}\p{N}_]|$)/:
Full error message:
The invalid regular expression that this is complaining about results from the import of
camelcase
(v.6.2.0). Theindex.js
of camelcase contains this function:client info
RHEL 6/7
The text was updated successfully, but these errors were encountered: