WAServiceMainContext.js:2 Error: MiniProgramError
{"errMsg":"makePhoneCall:fail cancel"}
at Object.errorReport (WAServiceMainContext.js:2)
at r.thirdErrorReport (WAServiceMainContext.js:2)
at Object.thirdErrorReport (WAServiceMainContext.js:2)
at i (WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2)
at Object.a [as cb] (WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2)
at WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2
at Array.forEach (<anonymous>)
at n.emit (WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2)
at t (WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2)
at WASubContext.js?t=wechat&s=1665446628548&v=2.19.4:2(env: Windows,mp,1.06.2209060; lib: 2.19.4)
没看过这种错误,今天在项目里面把几个页面名字改了,然后加一个页面。本来功能正常没有报错,结果现在莫名其妙报了。想了想,应该不是其他页面还有app.json的问题。第一次看这种问题,该怎么办
"errMsg":"makePhoneCall:fail cancel",
这是用户点了取消了
看提示是makePhoneCall:fail cancel ,调用拨打电话的时候点了取消,而取消 又未在fail里处理,就把错误抛出来了。
wx.makePhoneCall({ phoneNumber: '157234xxxxxx', fail: err => { // 应该是要加这段代码 或者把fail改为complete console.log(err) } })
看log就是调用了wx.makePhoneCall,点了取消。