0
点赞
收藏
分享

微信扫一扫

微信小程序客服开发发送消息 40003 invalid openid hint


我的错误原因:Access-Token 错了,与其他小程序混了。

排查工具

​​https://mp.weixin.qq.com/debug/​​​ 思路:
1.确定json格式是否正确,openid 是否正确。
2.确定access-token是否正确。

排查问题:

发送消息的接口地址:

微信小程序客服开发发送消息 40003 invalid openid hint_Access

https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=你的token

1.验证所发送的消息的json是否正确,openid 需要添加双引号。

{
"touser": "ogaGt4ulax1KqL1iDCKlhiGAueOM",
"msgtype": "text",
"text": {
"content": "Hello World"
}
}

2.如果确认了openid 是没有错的,则从access-token下手。

​​https://mp.weixin.qq.com/debug/​​ 输入你的appid 和 secret。

微信小程序客服开发发送消息 40003 invalid openid hint_Access_02


得到access-token 再重复1 步骤。


举报

相关推荐

0 条评论