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

开启代理后访问任何地址都提示连接超时 #1063

Open
gengfanbin opened this issue Apr 11, 2024 · 8 comments
Open

开启代理后访问任何地址都提示连接超时 #1063

gengfanbin opened this issue Apr 11, 2024 · 8 comments

Comments

@gengfanbin
Copy link

如题,win11系统中开启代理后任何连接都超时

错误信息
From: whistle@2.9.68
Node: v20.4.0
Host: DESKTOP-AHVOSQ8
Date: 2024/4/11 16:13:51
Error: socket connect timeout
at retry (C:\Users\seable\AppData\Roaming\nvm\v20.4.0\node_modules\whistle\lib\inspectors\res.js:546:34)
at Timeout._onTimeout (C:\Users\seable\AppData\Roaming\nvm\v20.4.0\node_modules\whistle\lib\inspectors\res.js:668:31)
at listOnTimeout (node:internal/timers:573:17)
at process.processTimers (node:internal/timers:514:7)

重新安装whistle依然这样。尝试了很多办法,重装CA,重启代理,手动配置代理,都无法解决。。帮忙看一下问题呗

@avwo
Copy link
Owner

avwo commented Apr 11, 2024

这个跟你本机网络有关,用 chrome 抓包看下不走代理你们的请求是怎么走的

@gengfanbin
Copy link
Author

可能我描述的不清楚,这个问题只在使用w2 proxy 然后运行w2 start 命令后出现,关掉w2和代理后网络恢复正常。我不太清楚应该怎么排查问题所在。

@gengfanbin
Copy link
Author

它甚至有个奇怪的现象,就是在开启代理的很短时间内,估计1~2秒内,我可以访问到写在w2 rules中的文件。然后就断网了。

@gengfanbin
Copy link
Author

换成手机热点后,无法复现这个问题了,但是我还是没明白为什么在本地网络中会出现这个问题。我应该从哪里开始排查?毕竟我不能一直跑热点流量

@gengfanbin
Copy link
Author

我同事电脑连着本地网络,然后给我开热点,我这可以正常开启代理访问网络,我直连本地网络,开代理,断网。。。这是什么情况啊,好奇怪

@avwo
Copy link
Owner

avwo commented Apr 11, 2024

不配系统代理试试

@gengfanbin
Copy link
Author

不配置系统代理的时候 rule 设置的规则好像不生效,我无法访问到rule规则里的文件

@JackZong
Copy link

JackZong commented May 22, 2024

有个同样的问题:
whistle配置如下:
`
https://abc.com/api/ https://abc.com/api/

https://abc.com/ http://localhost:5174/

wss://abc.com/ ws://localhost:5174/
`
所有abc.com的请求都成功代理到了whistle,localhost:5174也成功响应,但是不知道为啥/api/xxx的请求偶尔可以通几次,大部分时间都会报 Error: socket connect timeout。

帮忙看一下~

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

No branches or pull requests

3 participants