TooTallNate / proxy-agents

Node.js HTTP Proxy Agents Monorepo
https://proxy-agents.n8.io
872 stars 229 forks source link

RequestError: Unexpected agent option: _events #247

Closed JijaProGamer closed 2 months ago

JijaProGamer commented 9 months ago

This is the code:

got({ url: "https://lumtest.com/myip.json", agent: this.extra.proxy ? new ProxyAgent({getProxyForUrl: () => this.extra.proxy}) : undefined })

lukekarrys commented 2 months ago

This is an issue either how you are using the got library. Check the docs of that package for how to set the agent.