RequestError: Unexpected agent option: _events
JijaProGamer opened this issue · 1 comments
JijaProGamer commented
This is the code:
got({ url: "https://lumtest.com/myip.json", agent: this.extra.proxy ? new ProxyAgent({getProxyForUrl: () => this.extra.proxy}) : undefined })
lukekarrys commented
This is an issue either how you are using the got
library. Check the docs of that package for how to set the agent.