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.36k stars 94 forks source link

异常输出 #46

Closed simplove closed 11 months ago

simplove commented 11 months ago

2023/12/08 16:30:29 dial: websocket: bad handshake 2023/12/08 16:30:29 dial: websocket: bad handshake 2023/12/08 16:30:30 dial: websocket: bad handshake 2023/12/08 16:30:31 dial: websocket: bad handshake 2023/12/08 16:30:32 dial: websocket: bad handshake 2023/12/08 16:30:32 dial: websocket: bad handshake 2023/12/08 16:30:35 dial: websocket: bad handshake 2023/12/08 16:30:37 dial: websocket: bad handshake 2023/12/08 16:30:40 dial: websocket: bad handshake panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x0 pc=0x106a44e]

goroutine 1 [running]: github.com/gorilla/websocket.(*Conn).Close(0xc00011d978?) github.com/gorilla/websocket@v1.5.0/conn.go:345 +0xe github.com/nxtrace/NTrace-core/cmd.Excute.func1() github.com/nxtrace/NTrace-core/cmd/cmd.go:173 +0x1b github.com/nxtrace/NTrace-core/cmd.Excute() github.com/nxtrace/NTrace-core/cmd/cmd.go:340 +0x22b0 main.main() github.com/nxtrace/NTrace-core/main.go:8 +0xf

tsosunchia commented 11 months ago

https://github.com/Archeb/opentrace/issues/44

Archeb commented 11 months ago

如果您遇到了 websocket: bad handshake:

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

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

请首先尝试更新 OpenTrace 到 1.4.1.1 版本及以上,该版本同步了最新的 NextTrace,也许可以缓解 API 的连接性问题。

如果还是不能解决,请把问题向上游 NextTrace 报告,也可以考虑在主界面右上角切换其他数据源或者在设置中配置本地数据源。