- chooseMedia部分用户只是返回"errMsg": "chooseMedia:fail"
累计有几个用户反馈选择相册照片报错,大部分用户都是正常的,隐私协议是正常的,还联系了一个用户把他加为开发者体验我的调试版小程序,发现又好了,就没法复现了,后来我在前端加了报错就把err信息和system信息传给后端打印,一会就抓到了几个,如下: "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 } 另一个: "err": { "errMsg": "chooseMedia:fail" }, "system": { "screenWidth": 367, "cpuType": "SM7450", "phoneCalendarAuthorized": true, "windowHeight": 685, "bluetoothEnabled": true, "language": "zh_CN", "microphoneAuthorized": true, "fontSizeScaleFactor": 1, "locationAuthorized": true, "notificationAuthorized": true, "model": "REA-AN00", "statusBarHeight": 34, "safeArea": { "width": 367, "right": 367, "top": 34, "left": 0, "bottom": 814, "height": 780 }, "brand": "HONOR", "windowWidth": 367, "locationEnabled": true, "benchmarkLevel": 23, "screenHeight": 814, "abi": "arm64-v8a", "version": "8.0.47", "cameraAuthorized": true, "deviceAbi": "arm64-v8a", "system": "Android 13", "memorySize": 15299, "fontSizeSetting": 16, "pixelRatio": 3.275, "deviceOrientation": "portrait", "wifiEnabled": true, "screenTop": 78, "platform": "android", "SDKVersion": "3.3.4", "enableDebug": false, "devicePixelRatio": 3.275, "host": { "env": "WeChat", "version": 671100752 }, "mode": "default", "deviceId": 1.7111637217642721e+19, "safeAreaInsets": { "top": 34, "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": "honor", "deviceModel": "REA-AN00", "deviceType": "phone", "osName": "android", "osVersion": 13, "hostVersion": "8.0.47", "hostLanguage": "zh-CN", "hostName": "WeChat", "hostSDKVersion": "3.3.4", "hostFontSizeSetting": 16, "windowTop": 0, "windowBottom": 0 }
2024-03-23 - chooseMedia接口选择图片,出现很多报错:chooseMedia:fail
监控报错日志,发现最近用户端选择图片时出现很多报错 报错返回的”errMsg“ 只有 ”chooseMedia:fail“ ,没有其他任何信息,无法判断是什么地方出现错误。 根据已有日志, 目前主要出现的基础库版本:3.7.1(最多)、3.6.6 主要出现的机型:荣耀、华为、vivo、oppo等,都是安卓机型,iphone暂时没发现 我自己的华为手机没问题,无法复现,都是统计用户端的报错。
2024-12-16 - wx.chooseMedia在电脑版的返回结果与手机不一致
[图片] 可以看到,电脑端的返回结果res下没有tempFiles,但是官方接口文档示例中是 这样子的: [图片]
01-21