mirror of
https://github.com/Archeb/opentrace.git
synced 2026-04-26 01:05:55 +03:00
[GH-ISSUE #44] websocket: bad handshake 问题 #143
Labels
No labels
bug
enhancement
help wanted
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentrace#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fakeboboliu on GitHub (Nov 27, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/44
如果您遇到了
websocket: bad handshake:此问题是 NextTrace 相关问题,
表示 NextTrace IP 地理位置 API 无法连接,可能是网络异常。
因为 NextTrace 默认使用的 LeoMoeAPI 是社区的免费项目,使用 CloudFlare 免费 CDN,连接性可能受地区运营商的影响。
建议把问题向上游 NextTrace 报告,也可以考虑在主界面右上角切换其他数据源或者在设置中配置本地数据源。
@tsosunchia commented on GitHub (Nov 30, 2023):
不是有吗?
@wwng2333 commented on GitHub (Nov 30, 2023):
刚看到,所以删了,感谢回复
@tsosunchia commented on GitHub (Dec 7, 2023):
请检查你的dns是否经过代理
@tsosunchia commented on GitHub (Dec 7, 2023):
nslookup api.nxtrace.org
curl https://api.nxtrace.org/
curl https://origin-fallback.nxtrace.org/
分别查看以上三个命令结果
@tsosunchia commented on GitHub (Dec 7, 2023):
三条命令结果是啥
第二个/第三个 报错是正常的
chenwcy @.***>于2023年12月7日 周四下午12:44写道:
@tsosunchia commented on GitHub (Dec 7, 2023):
你是在大陆吧?
chenwcy @.***>于2023年12月7日 周四下午12:47写道:
@tsosunchia commented on GitHub (Dec 7, 2023):
如果你是在大陆
那就是你本地dns问题
我们的api是geodns,你的dns被代理了,返回了我们为海外用户设置的ip,自然无法连接
chenwcy @.***>于2023年12月7日 周四下午12:49写道:
@tsosunchia commented on GitHub (Dec 7, 2023):
最近在issue区有很多反馈,出现如下报错的问题
对于这种问题,不要急于发issue。大多数情况下,这是由用户的本地环境所引起的。特别需要注意的是,如果用户只为自己的DNS设置了代理,而没有为API设置代理,这可能会导致问题。我们的项目API使用了GeoDNS,如果用户代理了DNS,可能会接收到Cloudflare的IP地址。由于众所周知的原因,Cloudflare在中国大陆的访问并不顺畅。因此,当您遇到此类问题时,建议要么将DNS和API同时设置代理,要么就让DNS和API直连。