小程序
小游戏
企业微信
微信支付
扫描小程序码分享
小程序3.0.2基础库。苹果的可以使用,安卓华为机型不行,
使用wx.chooseMedia时,已经更新了隐私协议
可以调起上传,但是上传时会报错,提示:errMsg: "chooseMedia:fail",这是为什么?找不到原因
4 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
同样问题,大部分用户都正常,只有个别用户不行,直接返回fail,没有任何其他信息,也不知道什么原因。我抓到的信息
"err": {
"errMsg": "chooseMedia:fail"
},
"system": {
"screenWidth": 360,
"cpuType": "MT6768V/CA",
"phoneCalendarAuthorized": true,
"windowHeight": 659,
"bluetoothEnabled": false,
"language": "zh_CN",
"microphoneAuthorized": true,
"fontSizeScaleFactor": 1,
"locationAuthorized": true,
"notificationAuthorized": true,
"model": "V1913A",
"statusBarHeight": 28,
"safeArea": {
"width": 360,
"right": 360,
"top": 25,
"left": 0,
"bottom": 780,
"height": 755
"brand": "vivo",
"windowWidth": 360,
"locationEnabled": true,
"benchmarkLevel": 20,
"screenHeight": 780,
"abi": "arm64-v8a",
"version": "8.0.42",
"cameraAuthorized": true,
"deviceAbi": "arm64-v8a",
"system": "Android 9",
"memorySize": 5701,
"fontSizeSetting": 16,
"pixelRatio": 3,
"deviceOrientation": "portrait",
"wifiEnabled": true,
"screenTop": 71,
"platform": "android",
"SDKVersion": "3.1.5",
"enableDebug": false,
"devicePixelRatio": 3,
"host": {
"env": "WeChat",
"version": 671099480
"mode": "default",
"deviceId": 1.7111615189494456e+19,
"safeAreaInsets": {
"right": 0,
"bottom": 0
"appId": "",
"appName": "******",
"appVersion": "1.0.0",
"appVersionCode": 100,
"appLanguage": "zh-Hans",
"uniCompileVersion": 3.94,
"uniRuntimeVersion": 3.94,
"uniPlatform": "mp-weixin",
"deviceBrand": "vivo",
"deviceModel": "V1913A",
"deviceType": "phone",
"osName": "android",
"osVersion": 9,
"hostVersion": "8.0.42",
"hostLanguage": "zh-CN",
"hostName": "WeChat",
"hostSDKVersion": "3.1.5",
"hostFontSizeSetting": 16,
"windowTop": 0,
"windowBottom": 0
}
遇到同样问题,每天有大量异常,这个与隐私协议无关
也加了这个弹框,但是同意以后还是不能上传图片
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
同样问题,大部分用户都正常,只有个别用户不行,直接返回fail,没有任何其他信息,也不知道什么原因。我抓到的信息
"err": {
"errMsg": "chooseMedia:fail"
},
"system": {
"screenWidth": 360,
"cpuType": "MT6768V/CA",
"phoneCalendarAuthorized": true,
"windowHeight": 659,
"bluetoothEnabled": false,
"language": "zh_CN",
"microphoneAuthorized": true,
"fontSizeScaleFactor": 1,
"locationAuthorized": true,
"notificationAuthorized": true,
"model": "V1913A",
"statusBarHeight": 28,
"safeArea": {
"width": 360,
"right": 360,
"top": 25,
"left": 0,
"bottom": 780,
"height": 755
},
"brand": "vivo",
"windowWidth": 360,
"locationEnabled": true,
"benchmarkLevel": 20,
"screenHeight": 780,
"abi": "arm64-v8a",
"version": "8.0.42",
"cameraAuthorized": true,
"deviceAbi": "arm64-v8a",
"system": "Android 9",
"memorySize": 5701,
"fontSizeSetting": 16,
"pixelRatio": 3,
"deviceOrientation": "portrait",
"wifiEnabled": true,
"screenTop": 71,
"platform": "android",
"SDKVersion": "3.1.5",
"enableDebug": false,
"devicePixelRatio": 3,
"host": {
"env": "WeChat",
"version": 671099480
},
"mode": "default",
"deviceId": 1.7111615189494456e+19,
"safeAreaInsets": {
"top": 25,
"left": 0,
"right": 0,
"bottom": 0
},
"appId": "",
"appName": "******",
"appVersion": "1.0.0",
"appVersionCode": 100,
"appLanguage": "zh-Hans",
"uniCompileVersion": 3.94,
"uniRuntimeVersion": 3.94,
"uniPlatform": "mp-weixin",
"deviceBrand": "vivo",
"deviceModel": "V1913A",
"deviceType": "phone",
"osName": "android",
"osVersion": 9,
"hostVersion": "8.0.42",
"hostLanguage": "zh-CN",
"hostName": "WeChat",
"hostSDKVersion": "3.1.5",
"hostFontSizeSetting": 16,
"windowTop": 0,
"windowBottom": 0
}
遇到同样问题,每天有大量异常,这个与隐私协议无关
也加了这个弹框,但是同意以后还是不能上传图片