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
node -v
v20.2.0
报错:
Error: Client network socket disconnected before secure TLS connection was established
at connResetException (node:internal/errors:714:14)
at TLSSocket.onConnectEnd (node:_tls_wrap:1615:19)
at TLSSocket.emit (node:events:523:35)
at endReadableNT (node:internal/streams/readable:1367:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Waiting for the debugger to disconnect...
node -v
v20.2.0
报错:
Error: Client network socket disconnected before secure TLS connection was established
at connResetException (node:internal/errors:714:14)
at TLSSocket.onConnectEnd (node:_tls_wrap:1615:19)
at TLSSocket.emit (node:events:523:35)
at endReadableNT (node:internal/streams/readable:1367:12)
at processTicksAndRejections (node:internal/process/task_queues:82:21)
Waiting for the debugger to disconnect...
代码
const proxyFetch: FetchFn = async (
input: RequestInfo | URL,
init?: RequestInit | undefined
): Promise => {
const agent = new SocksProxyAgent("socks5://127.0.0.1:7890", {
keepAlive: true,
});
if (!init) init = {};
// @ts-ignore
init.agent = agent;
// @ts-ignore
return fetch(input, init);
};
The text was updated successfully, but these errors were encountered: