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

websocket: bad handshake 问题 #44

Closed
fakeboboliu opened this issue Nov 27, 2023 · 8 comments
Closed

websocket: bad handshake 问题 #44

fakeboboliu opened this issue Nov 27, 2023 · 8 comments

Comments

@fakeboboliu
Copy link
Collaborator

fakeboboliu commented Nov 27, 2023

如果您遇到了 websocket: bad handshake

此问题是 NextTrace 相关问题,
表示 NextTrace IP 地理位置 API 无法连接,可能是网络异常。

因为 NextTrace 默认使用的 LeoMoeAPI 是社区的免费项目,使用 CloudFlare 免费 CDN,连接性可能受地区运营商的影响。

建议把问题向上游 NextTrace 报告,也可以考虑在主界面右上角切换其他数据源或者在设置中配置本地数据源。

@fakeboboliu fakeboboliu pinned this issue Nov 27, 2023
@tsosunchia
Copy link
Contributor

是否可以增加一个http或者socks5代理,用于联网

不是有吗?

@wwng2333
Copy link

是否可以增加一个http或者socks5代理,用于联网

不是有吗?

刚看到,所以删了,感谢回复

@tsosunchia
Copy link
Contributor

请检查你的dns是否经过代理

@tsosunchia
Copy link
Contributor

nslookup api.nxtrace.org

curl https://api.nxtrace.org/

curl https://origin-fallback.nxtrace.org/

分别查看以上三个命令结果

@tsosunchia
Copy link
Contributor

tsosunchia commented Dec 7, 2023 via email

@tsosunchia
Copy link
Contributor

tsosunchia commented Dec 7, 2023 via email

@tsosunchia
Copy link
Contributor

tsosunchia commented Dec 7, 2023 via email

@tsosunchia
Copy link
Contributor

最近在issue区有很多反馈,出现如下报错的问题

websocket: bad handshake

对于这种问题,不要急于发issue。大多数情况下,这是由用户的本地环境所引起的。特别需要注意的是,如果用户只为自己的DNS设置了代理,而没有为API设置代理,这可能会导致问题。我们的项目API使用了GeoDNS,如果用户代理了DNS,可能会接收到Cloudflare的IP地址。由于众所周知的原因,Cloudflare在中国大陆的访问并不顺畅。因此,当您遇到此类问题时,建议要么将DNS和API同时设置代理,要么就让DNS和API直连。

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