operation.getJsErrDetail

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

错误查询详情

请求地址

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

请求参数

属性类型默认值必填说明
access_tokenstring接口调用凭证
startTimestring开始时间, 格式 “xxxx-xx-xx”
endTimestring结束时间,格式 “xxxx-xx-xx”
errorMsgMd5string错误列表查询 接口 返回的 errorMsgMd5 字段
errorStackMd5string错误列表查询 接口 返回的 errorStackMd5 字段
appVersionstring小程序版本 “0”代表全部, 例如:“2.0.18”
sdkVersionstring基础库版本 “0”表示所有版本,例如 “2.14.1”
osNamestring系统类型 “0”【全部】,”1” 【安卓】,”2” 【IOS】,”3”【其他】
clientVersionstring客户端版本 “0”表示所有版本, 例如 “7.0.22”
openidstring发生错误的用户 openId
descstring排序规则 “0” 升序, “1” 降序
offsetnumber分页起始值
limitnumber一次拉取最大值

请求示例

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

  1. {
  2. "startTime": "2021-01-25",
  3. "endTime": "2021-01-26",
  4. "errorMsgMd5": "f2fb4f8cd638466ad0e7607b01b7d0ca",
  5. "errorStackMd5": "795a63b70ce5755c7103611d93077603",
  6. "appVersion": "0",
  7. "sdkVersion": "0",
  8. "osName": "2",
  9. "clientVersion": "0",
  10. "openid": "",
  11. "offset": 0,
  12. "limit": 10,
  13. "desc": "0"
  14. }

返回的 JSON 数据包

属性类型说明
errcodenumber错误码
errmsgstring错误信息
dataArray.<Object>错误列表
totalCountnumber总条数

响应示例

  1. {
  2. "success": true,
  3. "openid": "",
  4. "data": [
  5. {
  6. "Count": "1",
  7. "sdkVersion": "2.14.1",
  8. "ClientVersion": "7.0.21",
  9. "errorStackMd5": "e371cd9cae821969c855f9f461327dac",
  10. "TimeStamp": "2021-01-25 16:36:39",
  11. "appVersion": "2.6.16",
  12. "errorMsgMd5": "53b4825ec4a41d966f88c298c718de80",
  13. "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; ",
  14. "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)",
  15. "Ds": "2021-01-25",
  16. "OsName": "1",
  17. "openId": "o-0YS0ZNM_bzkm13NKNUSwbrEkYU",
  18. "pluginversion": "0",
  19. "appId": "wxcff7381e631cf54e",
  20. "DeviceModel": "Redmi Note 5Aarm64-v8a",
  21. "source": "",
  22. "route": "",
  23. "Uin": "",
  24. "nickname": ""
  25. }
  26. ],
  27. "totalCount": 1,
  28. "errcode": 0
  29. }