omniedgeio / omniedge

Bringing intranet on the internet with Zero-Config Mesh VPNs.
https://omniedge.io
GNU General Public License v3.0
865 stars 50 forks source link

Websocket handshake issue of Windows Client #59

Open yongqianme opened 1 year ago

yongqianme commented 1 year ago

Windows Version:

OmniEdge Windows Client Version:

Windows location:

2022-11-23 01:35:18  TapManager:  "C:/Program Files (x86)/OmniEdge\\tap-windows\\add_tap_device.bat"  exists. 
2022-11-23 01:35:33  API: Getting Auth Session... 
2022-11-23 01:35:37  API: Connecting to websocket 
2022-11-23 01:35:37  API: DONE Get Auth Session  true 
2022-11-23 01:37:37  "API: Error when connecting to websocketQWebSocketPrivate::processHandshake: Unhandled http status code: 504 (Gateway Time-out)." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: <html>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: <head><title>504 Gateway Time-out</title></head>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: <body>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: <center><h1>504 Gateway Time-out</h1></center>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: <hr><center>nginx/1.20.0</center>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: </body>." 
2022-11-23 01:37:37  "API: Error when connecting to websocketInvalid statusline in response: </html>." 
2022-11-23 01:38:42  "API: Error when connecting to websocketInvalid statusline in response: </html>." 
2022-11-23 01:38:42  API: Disconencted from websocket 

PS: The web socket is working well with macOS client, the server is OK.

Reference issue: https://github.com/omniedgeio/omniedge/issues/58 https://github.com/omniedgeio/omniedge/issues/57

justin201802 commented 1 year ago

这个BUG还没有解决吗? 同样的windows客户端, 在几周前还是可以正常登录的, 但现在无法登录了, 与上述错误信息类似

NorthCityChen commented 1 year ago

这个问题似乎在 windows 0.2.6 版本中也没有得到解决,我尝试了多次启动(包括客户端以及我的电脑),但是似乎没有效果

Windows Version:

版本 Windows 11 家庭中文版 版本 22H2 操作系统版本 22621.1702

OmniEdge Windows Client Version: 0.2.6 (release date: 2023-05-09)

这是错误日志

2023-05-14 19:09:26  TapManager:  "D:/app/OmniEdge\\tap-windows\\add_tap_device.bat"  not exists. 
2023-05-14 19:09:30  QSslSocket::connectToHostEncrypted: TLS initialization failed 
2023-05-14 19:09:30  QSslSocket::connectToHostEncrypted: TLS initialization failed 
2023-05-14 19:10:51  API: Getting Auth Session... 
2023-05-14 19:10:51  QSslSocket::connectToHostEncrypted: TLS initialization failed 
2023-05-14 19:10:51  [ERROR]  "TLS initialization failed" 
2023-05-14 19:10:51  API: DONE Get Auth Session  false