使用的是稳定版本的token,也在有效期中,但就是一直报错40001.[图片][图片]
python创建微信公众号草稿时,报错40001应该怎样解决?python调用https://api.weixin.qq.com/cgi-bin/draft/add?access_token==access_token创建草稿时,确认access_token有效,上传图片都是成功的,但创建草稿时仍然报错“错误码:40001, 错误信息:invalid credential, access_token is invalid or not latest,”各位大佬帮忙看看应该怎样解决这个问题???
05-03同问,大佬问题解决后教教我哈
sendall?access_token={access_token}群发消息总是40001?其他api调用都正常,包括上传图片,编辑草稿,普通发表都没问题,但是像下面调用群发消息时,总是提示: {'errcode': 40001, 'errmsg': 'invalid credential, access_token is invalid or not latest, could get access_token by getStableAccessToken, more details at https://mmbizurl.cn/s/JtxxFh33r rid: 66345fd5-6153510f-1dcf4a73'} 请问是怎么回事? url = "https://api.weixin.qq.com/cgi-bin/message/mass/sendall?access_token={access_token}" data = { "filter": { "is_to_all": True, }, "mpnews": { "media_id": draft_id }, "msgtype": "mpnews", "send_ignore_reprint": 1 } response = requests.post(url, json=data) # 解析响应结果 result = response.json()
05-03