随笔 - 2649  文章 - 2452  评论 - 0  阅读 - 86517

查询js错误详情

查询js错误详情

调试工具

接口应在服务器端调用,详细说明参见服务端API

接口说明

接口英文名

getJsErrDetail

功能描述

该接口用于查询JS错误详情

调用方式

HTTPS 调用

POST https://api.weixin.qq.com/wxaapi/log/jserr_detail?access_token=ACCESS_TOKEN 

第三方调用

  • 调用方式以及出入参和HTTPS相同,仅是调用的token不同
  • 该接口所属的权限集id为:18
  • 服务商获得其中之一权限集授权后,可通过使用authorizer_access_token代商家进行调用

请求参数

属性 类型 必填 说明
access_token string 接口调用凭证,该参数为 URL 参数,非 Body 参数。使用access_token或者authorizer_access_token
startTime string 开始时间, 格式 "xxxx-xx-xx"
endTime string 结束时间,格式 “xxxx-xx-xx”
errorMsgMd5 string 错误信息的md5
errorStackMd5 string errorStack的Md5信息
appVersion string 小程序版本 "0"代表全部, 例如:“2.0.18”
sdkVersion string 基础库版本 "0"表示所有版本,例如 "2.14.1"
osName string 系统类型 "0"【全部】,"1" 【安卓】,"2" 【IOS】,"3"【其他】
clientVersion string 客户端版本 "0"表示所有版本, 例如 "7.0.22"
openid string 发生错误的用户 openId
offset number 分页起始值
limit number 一次拉取最大值
desc string 排序规则 "0" 升序, "1" 降序

返回参数

属性 类型 说明
errcode number 错误码
errmsg string 错误信息
data array 错误列表
属性类型说明Countstring数量sdkVersionstringsdkVersionClientVersionstringClientVersionerrorStackMd5stringerrorStackMd5TimeStampstring时间戳appVersionstringappVersionerrorMsgMd5stringerrorMsgMd5errorMsgstringerrorMsgerrorStackstringerrorStackDsstring日期OsNamestringOsNameopenIdstringopenIdpluginversionstringpluginversionappIdstringappIdDeviceModelstringDeviceModelsourcestringsourceroutestringroutenicknamestring昵称
totalCount number 总条数

调用示例

示例说明: HTTPS请求示例

请求数据示例

{
   "startTime": "2021-01-25",
   "endTime": "2021-01-26",
   "errorMsgMd5": "f2fb4f8cd638466ad0e7607b01b7d0ca",
   "errorStackMd5": "795a63b70ce5755c7103611d93077603",
   "appVersion": "0",
   "sdkVersion": "0",
   "osName": "2",
   "clientVersion": "0",
   "openid": "",
   "offset": 0,
   "limit": 10,
   "desc": "0"
} 

返回数据示例

{
    "success": true,
    "openid": "",
    "data": [
        {
            "Count": "1",
            "sdkVersion": "2.14.1",
            "ClientVersion": "7.0.21",
            "errorStackMd5": "e371cd9cae821969c855f9f461327dac",
            "TimeStamp": "2021-01-25 16:36:39",
            "appVersion": "2.6.16",
            "errorMsgMd5": "53b4825ec4a41d966f88c298c718de80",
            "errorMsg": "errCode: -404012 polling exceed max timeout retry | errMsg: cloud.callFunction:fail polling exceed max timeout retry (callId: 1611553677669-0.2531087324274228) (trace: 13:47:57 start->13:48:12 timeout, retry->13:48:18 app hide->13:48:27 timeout, retry->13:48:42 timeout, abort); at cloud.callFunction api; ",
            "errorStack": "Error: errCode: -404012 polling exceed max timeout retry | errMsg: cloud.callFunction:fail polling exceed max timeout retry (callId: 1611553677669-0.2531087324274228) (trace: 13:47:57 start->13:48:12 timeout, retry->13:48:18 app hide->13:48:27 timeout, retry->13:48:42 timeout, abort); at cloud.callFunction api; \n    at new t (https://usr/app-service.js:2:320930)\n    at c (https://usr/app-service.js:2:321660)\n    at l (https://usr/app-service.js:2:321755)\n    at https://usr/app-service.js:2:297192\n    at https://usr/app-service.js:2:76398\n    at Object.next (https://usr/app-service.js:2:76503)\n    at s (https://usr/app-service.js:2:75234)",
            "Ds": "2021-01-25",
            "OsName": "1",
            "openId": "o-0YS0ZNM_bzkm13NKNUSwbrEkYU",
            "pluginversion": "0",
            "appId": "wxcff7381e631cf54e",
            "DeviceModel": "Redmi Note 5Aarm64-v8a",
            "source": "",
            "route": "",
            "Uin": "",
            "nickname": ""
        }
    ],
    "totalCount": 1,
    "errcode": 0
} 

错误码

错误码 错误码取值 解决方案
-1 system error 系统繁忙,此时请开发者稍候再试
40001 invalid credential access_token isinvalid or not latest 获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口
posted on   AtlasLapetos  阅读(5)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· 提示词工程——AI应用必不可少的技术
· 字符编码:从基础到乱码解决
· 地球OL攻略 —— 某应届生求职总结
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

点击右上角即可分享
微信分享提示