直接上报错吧
socket error: Error: unable to verify the first certificate at Function.<anonymous> (game.js:5468:23) at Function.t (WAGameSubContext.js:2:151728) at o.<anonymous> (WAGame.js:2:529908) at o.emit (WAGame.js:2:562344) at WAGame.js:2:771030 at WAGame.js:2:645490 at protect.ts:36:51 at p (C:UsersAdministratorDocumentsWeChat FilesMinos_topgodAppletwx4661ae1335481dcbgame_index.js:1:118518) at j.<anonymous> (C:UsersAdministratorDocumentsWeChat FilesMinos_topgodAppletwx4661ae1335481dcbgame_index.js:1:119033) at j.emit (events.js:321:20)
Socket conenct error : undefined
[system] wx.onSocketError.callback { errMsg: "unable to verify the first certificate" }
[system] socketTask === currentSocketTask: false
socket close: { code: [Getter/Setter], reason: [Getter/Setter] }
Socket conenct failed. 0
[system] wx.onSocketClose.callback { code: 1006, reason: "" }
[system] socketTask === currentSocketTask: falseshsh
顺便提一下另外一个Bug,在各种环境下,下载微信头像都会间歇性出现562的问题。不要说什么不建议直接使用用户的AvtarUrl这些话,我怀疑你们解决不了头像地址的问题就让用户自己来埋单。
你好,能否提供个可复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
AppID:wx4661ae1335481dcb
小游戏下就会有问题
刚才发现562的时候,请求头像的Remote Address变成IPv6了:[240e:ff:f101:10::140]:443
过了一会Remote Address就变回IPv4就好了:123.151.79.101:443
怀疑这可能是微信存头像的服务器负载均衡相关设置的问题,遇到过几次,目前不清楚原因。
在开发工具上使用自动预览(启动PC端自动预览)时,进行websocket连接时出现以上报错。