部分安卓手机小程序链接webscoket报错
- 当前 Bug 的表现(可附上截图) 连接时返回值报“UNABLE_TO_VERIFY_LEAF_SINGATURE”错误 [图片] - 预期表现 [图片] - 复现路径 - 提供一个最简复现 Demo SocketTask = wx.connectSocket({ url: 'wss://', header: { 'content-type': 'application/json' }, method: 'post', success: function(res) { console.log('WebSocket连接创建', res) }, fail: function(err) { console.log(err); console.log(111); wx.showToast({ title: '网络异常!', }) // console.log(err) }, }) SocketTask.onOpen(res => { socketOpen = true wx.setStorageSync('socketOpen', true); this.globalData.socketOpen = socketOpen; // console.log('监听 WebSocket 连接打开事件。', res) }) SocketTask.onError(onError => { console.log('监听 WebSocket 错误。错误信息', onError) socketOpen = false wx.setStorageSync('socketOpen', false); this.globalData.socketOpen = socketOpen; })