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

fix: use correct ProxyAgent #17

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Conversation

d3or
Copy link
Contributor

@d3or d3or commented Dec 8, 2024

HttpsProxyAgent does not work with request as it does not implement dispatch. This PR instead uses ProxyAgent, which works with request.

See: https://github.com/nodejs/undici/blob/e461407c63e1009215e13bbd392fe7919747ab3e/docs/api/ProxyAgent.md#proxyagentdispatchoptions-handlers

Also, implementing tests for proxies that confirm that they work correctly would be very useful, as running agents via a proxy is an important use case.

@d3or d3or changed the title fix: use correct ProxyAgent for global fetch fix: use correct ProxyAgent Dec 8, 2024
@lalalune lalalune merged commit 915e790 into elizaOS:main Dec 9, 2024
@sukbearai
Copy link
Contributor

image
I use the test-utils code

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

Successfully merging this pull request may close these issues.

3 participants