发送客服消息API,同一个token请求接口表现时好时坏

发布于 6 年前作者 mamin8261 次浏览最后编辑 6 年前来自 ask
  • 当前 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 回复
min95
min951 楼6 年前

由于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!]"}
wei67
wei672 楼6 年前

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