收藏
回答

微信公众号客服接口偶发性报40001?

日志如下:时好时坏

[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:02:57,546 [INFO ] [NetUtil.java] : 108 -- Request[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] params[{"text":{"content":"好的,设备现在在哪个省、市施工?"},"msgtype":"text","touser":"oi59lxE35bZ10pa6zikUWz6wIH5A"}]

[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:02:57,861 [INFO ] [NetUtil.java] : 145 -- Response[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] result[{"errcode":0,"errmsg":"ok"}]


[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:20:28,129 [INFO ] [NetUtil.java] : 108 -- Request[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] params[{"text":{"content":"请提供一下您的名字及电话号码,稍后安排我司工程师联系您"},"msgtype":"text","touser":"oi59lxE35bZ10pa6zikUWz6wIH5A"}]

[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:20:28,288 [INFO ] [NetUtil.java] : 145 -- Response[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] result[{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hints: [lFjCZi5MRa-1qTIpA!]"}]


[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:21:04,288 [INFO ] [NetUtil.java] : 108 -- Request[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] params[{"text":{"content":"好的,后续有任何问题可以第一时间拨打:400-800-0157服务热线"},"msgtype":"text","touser":"oi59lxE35bZ10pa6zikUWz6wIH5A"}]

[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:21:12,252 [INFO ] [NetUtil.java] : 145 -- Response[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] result[{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hints: [LFjClWPfe-gJ5_fA!]"}]


[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:21:26,311 [INFO ] [NetUtil.java] : 108 -- Request[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] params[{"text":{"content":"好的,后续有任何问题可以第一时间拨打:400-800-0157服务热线"},"msgtype":"text","touser":"oi59lxE35bZ10pa6zikUWz6wIH5A"}]

[DubboServerHandler-172.30.44.51:20080-thread-200] 2020-06-19 12:21:26,667 [INFO ] [NetUtil.java] : 145 -- Response[https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=34_LfKptcfpKsp0Z1NPA-igxzn5RuUBkTmm1MOAmQt9ACYnHwfHtDdgfCeAde1XgiYYrpD27NnQIpw3gouWZFTflpJLfrM1Tc5XzzDUw09yT4eguzPW8XEudbPiIEKBcHj3sTNdLJNE1U1RROrvNIBjABASNG] result[{"errcode":0,"errmsg":"ok"}]

后台接口分析近两天失败率非常高

回答关注问题邀请回答
收藏

1 个回答

  • 公众号技术运营专员-summer
    公众号技术运营专员-summer
    2020-06-22

    你好,40001获取 access_token 时 AppSecret 错误,或者 access_token 无效。请开发者认真比对 AppSecret 的正确性,或查看是否正在为恰当的公众号调用接口。建议排查下是否有授权其他第三方调用导致刷新。

    2020-06-22
    有用
    回复
登录 后发表内容
问题标签