You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to capture the request I'm making using the node itself, but it doesn't return me anything the proxy-chain event functions, follow the code below:
importProxyChainfrom"proxy-chain";importkropfrom"krop";constserver=newProxyChain.Server({port: 8001});server.listen(()=>{console.log(`Proxy server is listening on port ${8001}`);});// Emitted when HTTP connection is closedserver.on("connectionClosed",({ connectionId, stats })=>{console.log(`Connection ${connectionId} closed`);console.dir(stats);});// Emitted when HTTP request failsserver.on("requestFailed",({ request, error })=>{console.log(`Request ${request.url} failed`);console.error(error);});awaitkrop("www.google.com",{http2: true,proxy: "127.0.0.1:8001",});
nodejs v18.17.0
ESM
proxy-chain v2.3.0
windows 11
The text was updated successfully, but these errors were encountered:
I was trying to capture the request I'm making using the node itself, but it doesn't return me anything the proxy-chain event functions, follow the code below:
The text was updated successfully, but these errors were encountered: