收藏
回答

chooseMedia部分用户只是返回"errMsg": "chooseMedia:fail"

框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
小程序 Bug wx.chooseMedia 微信安卓客户端 无规律 无规律

累计有几个用户反馈选择相册照片报错,大部分用户都是正常的,隐私协议是正常的,还联系了一个用户把他加为开发者体验我的调试版小程序,发现又好了,就没法复现了,后来我在前端加了报错就把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

    }

回答关注问题邀请回答
收藏

2 个回答

  • Demons
    Demons
    03-23

    你好,麻烦在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点

    03-23
    有用
    回复 2
    • Haydon Li
      Haydon Li
      03-23
      这个不是我的手机复现的问题,是用户反馈的,为了查报的什么错,所以我在前端加了chooseMedia返回err为异常时通过request发送到服务端记的log。目前通过服务端记的信息,都是vivo和华为的手机出现这个问题。会有个别用户这个情况。
      03-23
      回复
    • 择一城终老
      择一城终老
      03-26
      偶现这个问题,自己手机不能复现,出现这个错误会不会是因为选择照片过程中网络异常,导致失败?
      03-26
      回复
  • Haydon Li
    Haydon Li
    03-23

    目前了解到的信息不多,目前看system信息,手机是华为荣耀和vivo

    03-23
    有用
    回复 1
    • 择一城终老
      择一城终老
      03-26
      我也遇到同样的问题,
      03-26
      回复
登录 后发表内容