首页 > 编程知识 正文

公众号模板消息模板库,公众号消息模板主动推送

时间:2023-05-03 21:54:23 阅读:272262 作者:4082

总结:经常遇到的微信模版消息推送返回失败情况!

1、{“errcode”:40037,“errmsg”:“invalid template_id hint: [2ZVwjA0418ge29]”}

原因:template_id不存在
排查步骤:
1.1 检查template_id是否正确
1.2 是否是对应环境的公众号下配置的消息模版

2、{“errcode”:40001,“errmsg”:“invalid credential, access_token is invalid or not latest hint: [5bi46a00433401!]”}

原因:access_token 过期或不存在
排查步骤:
2.1 去Redis 查看token是否存在,是否过期

3、{“errcode”:40003,“errmsg”:“invalid openid hint: [FqjboA0554ge29]”}

原因:openid在此公众号无绑定
修复:重新获取一下openid

转载于:https://www.cnblogs.com/be-thinking/p/9299038.html

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。