很少一部分iOS手机出现wx.request接口调用失败。从iphone6~iphoneX都有部分手机出现该问题。
绝大部分手机是没有问题的,说明https以及域名配置是没有问题的。
以下是其中一个出现问题的手机:
用户反馈日志
2019-5-5 14:10:34 [log] wx.getStorageSync api invoke
2019-5-5 14:10:34 [log] wx.getStorageSync return
2019-5-5 14:10:34 [log] wx.getSystemInfo api invoke
2019-5-5 14:10:34 [log] wx.getSystemInfo success callback with msg getSystemInfo:ok
2019-5-5 14:10:34 [log] App onLaunch have been invoked
2019-5-5 14:10:34 [log] App onShow have been invoked
2019-5-5 14:10:34 [log] wx.canIUse api invoke
2019-5-5 14:10:34 [log] wx.getStorageSync api invoke
2019-5-5 14:10:34 [log] wx.getStorageSync return
2019-5-5 14:10:34 [log] page pages/index/index onLoad have been invoked
2019-5-5 14:10:34 [log] page pages/index/index onShow have been invoked
2019-5-5 14:10:34 [log] page pages/index/index onReady have been invoked
2019-5-5 14:10:53 [log] wx.login api invoke
2019-5-5 14:10:53 [log] wx.showLoading api invoke
2019-5-5 14:10:53 [log] wx.getStorageSync api invoke
2019-5-5 14:10:53 [log] wx.getStorageSync return
2019-5-5 14:10:53 [log] wx.getStorageSync api invoke
2019-5-5 14:10:53 [log] wx.getStorageSync return
2019-5-5 14:10:53 [log] wx.request api invoke with seq 0
2019-5-5 14:10:53 [log] wx.login success callback with msg login:ok
2019-5-5 14:10:54 [log] wx.request fail callback with msg request:fail 未能完成该操作。协议错误 with seq 0
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)