收藏
回答

企业微信自建应用发送卡片类型消息,显示taskid超出长度,但是实际没有超出128字节,这个怎么办?

消息发送内容 => WxCpMessage(toUser=ChenYinGe, toParty=null, toTag=null, agentId=1000009, msgType=taskcard, content=null, mediaId=null, thumbMediaId=null, title=徐敏老员工身价审批流程-勿删, description=申请人:杨茵婷 (店长)

Jun 15 10:37:04 ecs-e411-0002 db00d54f64ec[28711]: 申请内容:调整店员徐敏的身价为 ¥666.00, musicUrl=null, hqMusicUrl=null, safe=null, url=http://gloria-stg.sizdt.com:9182/mobile/#/workflow/143/approver/GZ1139, btnTxt=null, articles=[], mpnewsArticles=[], appId=null, page=null, emphasisFirstItem=null, contentItems=null, taskId=143_ChenYinGe, taskButtons=[TaskCardButton(key=REJECT_437, name=拒绝, replaceName=null, color=blue, bold=null), TaskCardButton(key=APPROVED_437, name=同意, replaceName=null, color=red, bold=null)])

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.490  INFO 1 --- [nio-8080-exec-8] c.m.c.message.service.WxCpAccount        : 消息返回内容 => {"errcode":0,"errmsg":"ok","invaliduser":""}

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.491  INFO 1 --- [nio-8080-exec-8] c.m.c.message.service.WxCpAccount        : 消息发送内容 => WxCpMessage(toUser=PanMiaoMiao, toParty=null, toTag=null, agentId=1000009, msgType=taskcard, content=null, mediaId=null, thumbMediaId=null, title=徐敏老员工身价审批流程-勿删, description=申请人:杨茵婷 (店长)

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 申请内容:调整店员徐敏的身价为 ¥666.00, musicUrl=null, hqMusicUrl=null, safe=null, url=http://gloria-stg.sizdt.com:9182/mobile/#/workflow/143/approver/GZ1139, btnTxt=null, articles=[], mpnewsArticles=[], appId=null, page=null, emphasisFirstItem=null, contentItems=null, taskId=143_PanMiaoMiao, taskButtons=[TaskCardButton(key=REJECT_438, name=拒绝, replaceName=null, color=blue, bold=null), TaskCardButton(key=APPROVED_438, name=同意, replaceName=null, color=red, bold=null)])

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.768  INFO 1 --- [nio-8080-exec-8] c.m.c.message.service.WxCpAccount        : 消息返回内容 => {"errcode":0,"errmsg":"ok","invaliduser":""}

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.769  INFO 1 --- [nio-8080-exec-8] c.m.c.message.service.WxCpAccount        : 消息发送内容 => WxCpMessage(toUser=zhangbw@newmiracle.net, toParty=null, toTag=null, agentId=1000009, msgType=taskcard, content=null, mediaId=null, thumbMediaId=null, title=徐敏老员工身价审批流程-勿删, description=申请人:杨茵婷 (店长)

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 申请内容:调整店员徐敏的身价为 ¥666.00, musicUrl=null, hqMusicUrl=null, safe=null, url=http://gloria-stg.sizdt.com:9182/mobile/#/workflow/143/approver/GZ1139, btnTxt=null, articles=[], mpnewsArticles=[], appId=null, page=null, emphasisFirstItem=null, contentItems=null, taskId=143_zhangbw@newmiracle.net, taskButtons=[TaskCardButton(key=REJECT_439, name=拒绝, replaceName=null, color=blue, bold=null), TaskCardButton(key=APPROVED_439, name=同意, replaceName=null, color=red, bold=null)])

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.969 ERROR 1 --- [nio-8080-exec-8] m.c.w.cp.api.impl.BaseWxCpServiceImpl    :

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 【请求地址】: https://qyapi.weixin.qq.com/cgi-bin/message/send?access_token=CkWkhSHmeLO9sAMOPEGaoGZDDqf1LYlU_Mlrk1gXt0dl7bP1Reca1D-JmpI-31BnuGxrQOpssaGwjv3d7sMAvuMBTpl5CfF79tMEqlYasY9RAU9SmP1qk0uiRA8patwh49CPoUxTXXA8YhIt_fI24p2IJqJYwRCPAlQHnAfHrnCtwJcOeHbO1ZcFouBzKGeXX3uXpXFmh_3q8-ZD5fHTnw

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 【请求参数】:{"agentid":1000009,"touser":"zhangbw@newmiracle.net","msgtype":"taskcard","taskcard":{"title":"徐敏老员工身价审批流程-勿删","description":"申请人:杨茵婷 (店长)\n申请内容:调整店员徐敏的身价为 ¥666.00","url":"http://gloria-stg.sizdt.com:9182/mobile/#/workflow/143/approver/GZ1139","task_id":"143_zhangbw@newmiracle.net","btn":[{"key":"REJECT_439","name":"拒绝","color":"blue"},{"key":"APPROVED_439","name":"同意","color":"red"}]}}

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 【错误信息】:错误代码:42014, 错误信息:taskid has existed or empty or exceed max len, hint: [1623724625_150_2321013dabdd57298eb9cf7694ef0f87], from ip: 139.9.40.248, more info at https://open.work.weixin.qq.com/devtool/query?e=42014,微信原始报文:{"errcode":42014,"errmsg":"taskid has existed or empty or exceed max len, hint: [1623724625_150_2321013dabdd57298eb9cf7694ef0f87], from ip: 139.9.40.248, more info at https://open.work.weixin.qq.com/devtool/query?e=42014"}

Jun 15 10:37:05 ecs-e411-0002 db00d54f64ec[28711]: 2021-06-15 10:37:05.969  INFO 1 --- [nio-8080-exec-8] c.m.c.message.service.WxCpAccount        : 消息发送失败 => 错误代码:42014, 错误信息:taskid has existed or empty or exceed max len, hint: [1623724625_150_2321013dabdd57298eb9cf7694ef0f87], from ip: 139.9.40.248, more info at https://open.work.weixin.qq.com/devtool/query?e=42014,微信原始报文:{"errcode":42014,"errmsg":"taskid has existed or empty or exceed max len, hint: [1623724625_150_2321013dabdd57298eb9cf7694ef0f87], from ip: 139.9.40.248, more info at https://open.work.weixin.qq.com/devtool/query?e=42014"}

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

1 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    2021-06-16

    你好,看日志,这个任务卡片id应该是已经存在了,发送任务卡片消息不支持使用相同的taskid

    2021-06-16
    有用
    回复 2
    • A good man well lives,Mr. Zhang
      A good man well lives,Mr. Zhang
      2021-06-16
      您好,任务ID是没有存在的,因为ID我是用 我们业务中的流程ID和接收人拼接起来的,所以不会重复的,就比如:123_a, 123_b, 123_d这样,前面两个都发送成功的,后面的123_d它就发送失败了
      2021-06-16
      回复
    • 企业微信运营专员-千夜
      企业微信运营专员-千夜
      2021-06-16回复A good man well lives,Mr. Zhang
      仔细看了下你这个任务卡片id 143_zhangbw@newmiracle.net 有. 这个符号,任务id,同一个应用发送的任务卡片消息的任务id不能重复,只能由数字、字母和“_-@”组成,最长支持128字节
      2021-06-16
      1
      回复
登录 后发表内容