2164关注7464浏览
你好,我的IP 117.114.139.237在通过小程序code换取openid的过程中,不知道什么原因导致该IP访问不了服务。如下是python的报错代码:
requests.exceptions.ConnectionError:HTTPSConnectionPool(host='api.weixin.qq.com', port=443): Max retries exceededwith url:/sns/jscode2session?appid=xxx&secret=xxxx&js_code=xxxx&grant_type=authorization_code(Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnectionobject at 0x7f4610551950>: Failed to establish a new connection: [Errno -5]No address associated with hostname',))
大致的情况是117.114.139.237访问不了接口,换个ip可以访问。
不知道是微信小程序这边将该IP封了,导致https://api.weixin.qq.com/sns/jscode2session?appid=APPID&secret=SECRET&js_code=JSCODE&grant_type=authorization_code接口调用不了。我的小程序APPID为"wxd2429f9c35cb6f3f",账号主体为北京得意音通技术有限责任公司。
和小程序代码无关,就是后台的接口调用不成功。
-
至过去的我
2044人对此回答表示赞同
我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>