Archeb / opentrace

A cross-platform GUI wrapper for NextTrace. Bringing you the familiar traceroute experience. OpenTrace 是 NextTrace 的跨平台 GUI 界面,带来您熟悉但更强大的用户体验。
GNU General Public License v3.0
2.26k stars 91 forks source link

websocket: bad handshake 问题 #44

Closed fakeboboliu closed 10 months ago

fakeboboliu commented 10 months ago

如果您遇到了 websocket: bad handshake

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

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

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

tsosunchia commented 10 months ago

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

不是有吗?

wwng2333 commented 10 months ago

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

不是有吗?

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

tsosunchia commented 10 months ago

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

tsosunchia commented 10 months ago

nslookup api.nxtrace.org

curl https://api.nxtrace.org/

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

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

tsosunchia commented 10 months ago

三条命令结果是啥

第二个/第三个 报错是正常的

chenwcy @.***>于2023年12月7日 周四下午12:44写道:

nslookup api.nxtrace.org

curl https://api.nxtrace.org/

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

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

第二条命令报错 。

— Reply to this email directly, view it on GitHub https://github.com/Archeb/opentrace/issues/44#issuecomment-1844373434, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ . You are receiving this because you commented.Message ID: @.***>

tsosunchia commented 10 months ago

你是在大陆吧?

chenwcy @.***>于2023年12月7日 周四下午12:47写道:

三条命令结果是啥 第二个/第三个 报错是正常的 chenwcy @.

>于2023年12月7日 周四下午12:44写道: … <#m-8446665265840364013> nslookup api.nxtrace.org http://api.nxtrace.org curl https://api.nxtrace.org/ https://api.nxtrace.org/ curl https://origin-fallback.nxtrace.org/ https://origin-fallback.nxtrace.org/ 分别查看以上三个命令结果 第二条命令报错 。 — Reply to this email directly, view it on GitHub <#44 (comment) https://github.com/Archeb/opentrace/issues/44#issuecomment-1844373434>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ . You are receiving this because you commented.Message ID: @.>

Misaka.LAX

— Reply to this email directly, view it on GitHub https://github.com/Archeb/opentrace/issues/44#issuecomment-1844375338, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB3C2BAZ7W5Z6BTDHMLYIFC6FAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TKMZTHA . You are receiving this because you commented.Message ID: @.***>

tsosunchia commented 10 months ago

如果你是在大陆

那就是你本地dns问题

我们的api是geodns,你的dns被代理了,返回了我们为海外用户设置的ip,自然无法连接

chenwcy @.***>于2023年12月7日 周四下午12:49写道:

isaka.LAX

你是在大陆吧? chenwcy @.

>于2023年12月7日 周四下午12:47写道: … <#m2027896486840905074> 三条命令结果是啥 第二个/第三个 报错是正常的 chenwcy @. >于2023年12月7日 周四下午12:44写道: … <#m-8446665265840364013> nslookup api.nxtrace.org http://api.nxtrace.org http://api.nxtrace.org http://api.nxtrace.org curl https://api.nxtrace.org/ https://api.nxtrace.org/ https://api.nxtrace.org/ https://api.nxtrace.org/ curl https://origin-fallback.nxtrace.org/ https://origin-fallback.nxtrace.org/ https://origin-fallback.nxtrace.org/ https://origin-fallback.nxtrace.org/ 分别查看以上三个命令结果 第二条命令报错 。 — Reply to this email directly, view it on GitHub <#44 https://github.com/Archeb/opentrace/issues/44 (comment) <#44 (comment) https://github.com/Archeb/opentrace/issues/44#issuecomment-1844373434>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ https://github.com/notifications/unsubscribe-auth/AOGBNB3JWFHULNDBG64IYLDYIFCTJAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TGNBTGQ . You are receiving this because you commented.Message ID: @.> Misaka.LAX — Reply to this email directly, view it on GitHub <#44 (comment) https://github.com/Archeb/opentrace/issues/44#issuecomment-1844375338>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB3C2BAZ7W5Z6BTDHMLYIFC6FAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TKMZTHA https://github.com/notifications/unsubscribe-auth/AOGBNB3C2BAZ7W5Z6BTDHMLYIFC6FAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM3TKMZTHA . You are receiving this because you commented.Message ID: @.>

不清楚命令对应的结果,谢谢大哥不搞了

— Reply to this email directly, view it on GitHub https://github.com/Archeb/opentrace/issues/44#issuecomment-1844386194, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOGBNB7DCYNZSSZDG7ZUPLDYIFDGXAVCNFSM6AAAAAA74FXXAKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNBUGM4DMMJZGQ . You are receiving this because you commented.Message ID: @.***>

tsosunchia commented 10 months ago

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

websocket: bad handshake

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