python SDK版本是2.5.0,报错信息如下:、
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
File "notifier.py", line 34, in main
first_recent_comment = self.get_query_obj.find()[0]
File "/usr/local/lib/python3.6/dist-packages/leancloud/query.py", line 222, in find
content = self._do_request(self.dump())
File "/usr/local/lib/python3.6/dist-packages/leancloud/query.py", line 182, in _do_request
return client.get('/classes/{0}'.format(self._query_class._class_name), params).json()
File "/usr/local/lib/python3.6/dist-packages/leancloud/client.py", line 105, in new_func
return func(headers=headers, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/leancloud/client.py", line 162, in new_func
response = func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/leancloud/client.py", line 212, in get
hooks=request_hooks,
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 546, in get
return self.request('GET', url, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 504, in send
raise ConnectTimeout(e, request=request)
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='inhiw3lp.api.lncld.ne', port=443): Max retries exceeded with url: /1.1/classes/Comment?where=%7B%7D&limit=1&order=-createdAt (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7fe37cfd5748>, 'Connection to inhiw3lp.api.lncld.net timed out. (connect timeout=15)'))
base.py - 2020-02-19 08:47:11 - DEBUG -Looking for jobs to run
base.py - 2020-02-19 08:47:11 - DEBUG -Next wakeup is due at 2020-02-19 08:52:11.493579+00:00 (in 299.998952 seconds)
base.py - 2020-02-19 08:47:11 - INFO -Running job "Query.main (trigger: interval[0:05:00], next run at: 2020-02-19 08:52:11 UTC)" (scheduled at 2020-02-19 08:47:11.493579+00:00)
connectionpool.py - 2020-02-19 08:47:11 - DEBUG -Starting new HTTPS connection (5539): inhiw3lp.api.lncld.net:443
connectionpool.py - 2020-02-19 08:47:11 - DEBUG -Starting new HTTPS connection (2769): app-router.leancloud.cn:443