operation.getJsErrList

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

错误查询列表

请求地址

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

请求参数

属性 类型 默认值 必填 说明
access_token string 接口调用凭证
appVersion string 小程序版本 "0"代表全部, 例如:“2.0.18”
errType string 错误类型 "0"【全部】,"1"【业务代码错误】,"2"【插件错误】,"3"【系统框架错误】
startTime string 开始时间, 格式 "xxxx-xx-xx"
endTime string 结束时间,格式 “xxxx-xx-xx”
keyword string 从错误中搜索关键词,关键词过滤
openid string 发生错误的用户 openId
orderby string 排序字段 "uv", "pv" 二选一
desc string 排序规则 "1" orderby字段降序,"2" orderby字段升序
offset number 分页起始值
limit number 一次拉取最大值, 最大 30

请求示例

请在 HTTP RequestHeader 中 设置如下字段:content-type: application/json;

{
    "startTime": "2021-01-25",
    "endTime": "2021-01-26",
    "errType": "0",
    "appVersion": "0",
    "openid": "",
    "keyword": "",
    "orderby": "uv",
    "desc": "2",
    "offset": 0,
    "limit": 1
}

返回的 JSON 数据包

属性 类型 说明
errcode number 错误码
errmsg string 错误信息
data Array.<Object> 错误列表
totalCount number 总条数

响应示例

{
  "success": true,
  "openid": "",
  "data": [
      {
       "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; \nError: 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)\n",
       "uv": 1,
       "pv": 1,
       "errorStackMd5": "e371cd9cae821969c855f9f461327dac",
       "errorStack": "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; \nError: 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)\n",
       "pvPercent": "0.1%",
       "uvPercent": "1.1%"
      }
   ],
  "totalCount": 739,
  "errcode": 0
}