Skip to content
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

1.x: httpAgent not working on Node.js 18.x version #6380

Closed
ghost opened this issue Aug 26, 2023 · 0 comments
Closed

1.x: httpAgent not working on Node.js 18.x version #6380

ghost opened this issue Aug 26, 2023 · 0 comments

Comments

@ghost
Copy link

ghost commented Aug 26, 2023

Expected behavior

Custom http agent should work for Node.js later than 18.x version

Actual behavior

It doesn't work,

For Node.js later than 18.x the polyfill will depend on native fetch API which lacks support for an httpAgents.

https://nodejs.org/dist/latest-v18.x/docs/api/globals.html#fetch

https://github.com/nodejs/undici

See https://stackoverflow.com/questions/73817412/why-is-the-agent-option-not-available-in-node-native-fetch for more info

Environment

Web3.js 1.x, Node 18.x

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants