[GH-ISSUE #48] github.com/nxtrace/NTrace-core/cmd/cmd.go:357 +0x22b0 main.main() #41

Closed
opened 2026-03-01 14:38:26 +03:00 by kerem · 3 comments
Owner

Originally created by @luke-huai on GitHub (Dec 8, 2023).
Original GitHub issue: https://github.com/Archeb/opentrace/issues/48

Originally created by @luke-huai on GitHub (Dec 8, 2023). Original GitHub issue: https://github.com/Archeb/opentrace/issues/48
kerem closed this issue 2026-03-01 14:38:26 +03:00
Author
Owner

@luke-huai commented on GitHub (Dec 8, 2023):

2023/12/09 00:42:35 dial: websocket: bad handshake
2023/12/09 00:42:36 dial: websocket: bad handshake
2023/12/09 00:42:37 dial: websocket: bad handshake
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x0 pc=0x81052e]

goroutine 1 [running]:
github.com/gorilla/websocket.(*Conn).Close(0xc0000c5978?)
github.com/gorilla/websocket@v1.5.1/conn.go:352 +0xe
github.com/nxtrace/NTrace-core/cmd.Excute.func1()
github.com/nxtrace/NTrace-core/cmd/cmd.go:186 +0x1b
github.com/nxtrace/NTrace-core/cmd.Excute()
github.com/nxtrace/NTrace-core/cmd/cmd.go:357 +0x22b0
main.main()

<!-- gh-comment-id:1847506796 --> @luke-huai commented on GitHub (Dec 8, 2023): 2023/12/09 00:42:35 dial: websocket: bad handshake 2023/12/09 00:42:36 dial: websocket: bad handshake 2023/12/09 00:42:37 dial: websocket: bad handshake panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x0 pc=0x81052e] goroutine 1 [running]: github.com/gorilla/websocket.(*Conn).Close(0xc0000c5978?) github.com/gorilla/websocket@v1.5.1/conn.go:352 +0xe github.com/nxtrace/NTrace-core/cmd.Excute.func1() github.com/nxtrace/NTrace-core/cmd/cmd.go:186 +0x1b github.com/nxtrace/NTrace-core/cmd.Excute() github.com/nxtrace/NTrace-core/cmd/cmd.go:357 +0x22b0 main.main()
Author
Owner

@tsosunchia commented on GitHub (Dec 8, 2023):

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

<!-- gh-comment-id:1847507849 --> @tsosunchia commented on GitHub (Dec 8, 2023): https://github.com/Archeb/opentrace/issues/44
Author
Owner

@Archeb commented on GitHub (Dec 10, 2023):

如果您遇到了 websocket: bad handshake:

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

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

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

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

<!-- gh-comment-id:1848965437 --> @Archeb commented on GitHub (Dec 10, 2023): 如果您遇到了 websocket: bad handshake: 此问题是 [NextTrace](https://github.com/nxtrace/NTrace-core) 相关问题, 表示 NextTrace IP 地理位置 API 无法连接,可能是网络异常。 因为 NextTrace 默认使用的 LeoMoeAPI 是社区的免费项目,使用 CloudFlare 免费 CDN,连接性可能受地区运营商的影响。 请首先尝试更新 OpenTrace 到 1.4.1.1 版本及以上,该版本同步了最新的 NextTrace,也许可以缓解 API 的连接性问题。 如果还是不能解决,请把问题向上游 [NextTrace](https://github.com/nxtrace/NTrace-core/issues) 报告,也可以考虑在主界面右上角切换其他数据源或者在设置中配置本地数据源。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentrace#41
No description provided.