-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error when running tests on node 20 #15
Comments
Thanks for report. Probably,
We need to find workaround this. |
It seems to work in Node.js 20 by overriding it with a subclass of |
Very nice, thank you for the super fast response |
## Bug Fixes - Support Node.js 20 - #15 v2.0.0 fixes following error on Node.js 20+ ``` Uncaught Error: This is caused by either a bug in Node.js or incorrect usage of Node.js internals. Please open an issue with this stack trace at https://github.com/nodejs/node/issues ``` ## BREAKING CHANGE | Version | Node.js 12 | Node.js 14 | Node.js 16 | Node.js 18 | Node.js 20 | | :------ | :--------- | :--------- | :--------- | :--------- | :---------- | | v1.x.x | Support | Support | Support | Support | Not Support | | v2.0.0 | No Support | No Support | No Support | Support | Support | - Drop Node.js 12, 14, 16 - Remove `applyRequestFilter(agent)` function - It is incompatible way for Node.js 20+ - So, It is just dropped - Remove `stopPortScanningByUrlRedirection` option - We already block the redirect attack pattern - It is duplicated option and just drop `stopPortScanningByUrlRedirection` - https://github.com/azu/request-filtering-agent/blob/a0a348ead386728aaf3e21cddbee3fb077c3d3bf/test/request-filtering-agent.test.ts#L195
I've released v2.0.0 |
Im running the tests and I get an internal error:
Node version:
OS version:
Reproduce:
Output:
The text was updated successfully, but these errors were encountered: