收藏
回答

任务卡片消息 提交错误问题?

错误码查询工具

  • API错误码/hint值
  • access_token权限


API错误码


错误说明:

不合法的参数

排查方法:

传递参数不符合系统要求,需要参照具体API接口说明

hint值

有时候可能根据错误码说明,你仍然不知道自己的参数在哪里出错,此时可以在接口请求url里加上debug=1参数(查看详情),

之后从接口返回的errmsg复制出hint值,粘贴到以上输入框进行查询

请求参数:

{"touser": "qy01aa2934fa4386002a6a84f82b","msgtype": "taskcard","agentid": "1000023","taskcard": { "title": "23", "description": "444","task_id": "taskid13323","btn": [{"key": "key123","name": "批准","replace_name": "已批准","color": "red","is_bold": "true"},{"key": "key1234","name": "驳回","replace_name": "已驳回"}]},"enable_id_trans":"1"}

请求头:

POST /cgi-bin/message/send?access_token=&debug=1 HTTP/1.1

X-Forwarded-For: 59.41.75.59

PROXY_FORWARDED_FOR: 3B4B293B,0000,0,0,0,0,0,0,0

WEWORK_PROXY_FORWARDED_FOR: 59.41.75.59

Connection: Keep-Alive

Pragma: no-cache

X-InnerReqId: 196187165.3372.1613972812.34735

Host: qyapi.weixin.qq.com

Content-Type: application/x-www-form-urlencoded

Content-Length: 354


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

1 个回答

  • 甬力白水
    甬力白水
    02-22

    知道原因了,参数问题

    02-22
    有用
    回复
登录 后发表内容
问题标签