我们有三个python脚本,定时给玩家发放奖励,具体流程是先请求一个记录表,那一条记录,内容是包含1000个项目的数组。
然后遍历这1000个项目,挨个根据具体情况进行插入操作。
目前有两个脚本断在进行插入操作的时候,一个断在查询操作,共性就是max retries错误:
Exceptionmsg HTTPSConnectionPool(host='api.leancloud.cn', port=443): Max retries exceeded with url: /1.1/classes/Mail?fetchWhenSave=false (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2749f90>: Failed to establish a new connection: [Errno -2] Name or service not known',))
HTTPSConnectionPool(host='api.leancloud.cn', port=443): Max retries exceeded with url: /1.1/classes/Mail?fetchWhenSave=false (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x233b610>: Failed to establish a new connection: [Errno -2] Name or service not known',))
[ERROR] [2016-04-27 21:01:09.531617] HTTPSConnectionPool(host='api.leancloud.cn', port=443): Max retries exceeded with url: /1.1/classes/PvpSnapshot?limit=1&where=%7B%7D&order=-createdAt (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x28f61d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
~
-
创建时间
16年4月27日
-
最后回复
16年4月27日
-
6
回复
-
4.1K
浏览
-
2
用户
-
4
链接