2020-09-22 18:04:30.441
URL: https://api.weixin.qq.com/cgi-bin/component/api_authorizer_token?component_access_token=37_xx
Resp: {"errmsg":"This ip is no longer use. Please change your DNS server or server hosts list. You can get new ip list on https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_the_WeChat_server_IP_address.html"}
以上为日志记录,经过2-3分钟后恢复正常了,但客户有反馈询问此事为何
1. api.weixin.qq.com提供多个IP作为接入,只配置1个,有单点故障风险。具体的对外服务IP列表可以从api接口获取,建议用户每周定期检查是否更新(接口文档:https://developers.weixin.qq.com/doc/offiaccount/Basic_Information/Get_the_WeChat_server_IP_address.html)
2. 最近对外IP会有裁撤操作,由于无法得知用户是否只配置单个IP,所以上述错误提示是预期之内,建议开发者尽快修改请求的IP。
3. 最后建议开发者:尽可能减少写死单个IP,尽可能使用域名解析,这有利于开放平台的优化和容灾部署,提高稳定性。
兄弟你现在好了吗?我还是报这个错,运行了一年多的程序,今天突然报这个
{
"ip_list": [
"101.226.212.27",
"112.60.0.226",
"112.60.0.235",
"116.128.163.147",
"117.184.242.111",
"121.51.130.115",
"121.51.166.37",
"121.51.90.217",
"180.97.7.108",
"182.254.88.157",
"183.3.234.152",
"183.57.48.62",
"203.205.239.82",
"203.205.239.94",
"36.152.5.109",
"58.246.220.31",
"58.251.80.204",
"58.251.82.216",
"hk.api.weixin.qq.com."
]
}