发送客服消息API,同一个token请求接口表现时好时坏
发布于 5 年前 作者 mamin 8098 次浏览 来自 问答
  • 当前 Bug 的表现(可附上截图)

    https://developers.weixin.qq.com/miniprogram/dev/api-backend/customerServiceMessage.send.html  发送客服消息,在同一个有效的access_token请求下,一会返回invalid credential, access_token is invalid or not latest;一会又请求成功

  • 预期表现

    请求成功

小程序Id:wx86dd2464b505a062

2 回复

由于token有失效时间,需要的话我可以提供url请求,目前必定复现,https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=   请求中,同一个有效的access_token模拟请求多次必定会出现

{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: [QvV2za00794731!]"}

是否有别的server重新获取了token?麻烦检查一下

回到顶部