- 当前 Bug 的表现(可附上截图)
errMsg: "checkSession:fail cgi response is empty", errCode: -1
- 预期表现
- 复现路径
- 提供一个最简复现 Demo
wx.checkSession({
success: function(res) {
console.log("checkSession",res)
getToken(token)
},
fail: function(res) {
console.log("checkSession", "fail", res)
loginPromise().then(function(token) {
getToken(token)
})
}
})
,提供下你的代码片段测试下:(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
我是在手机上测试的,本地电脑又登的这个账号,我换了一个账号,就不出现了。
----->>>>>> errMsg: "checkSession:fail cgi response is empty", errCode: -1 这个是你截图的结果。
我也出现这个问题,我是连续点击wx.checkSession超200下出现checkSession:fail cgi response is empty,只要出现一次后续调用都checkSession:fail cgi response is empty,帮check下,感谢