nickoala / telepot

Python framework for Telegram Bot API
MIT License
2.42k stars 474 forks source link

Error on infinite loop #322

Open iz2bhp opened 7 years ago

iz2bhp commented 7 years ago

Why some times appears this warnings are they errors ?

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/telepot/init.py", line 1059, in get_from_telegram_server allowed_updates=allowed_upd) File "/usr/local/lib/python2.7/dist-packages/telepot/init.py", line 876, in getUpdates return self._api_request('getUpdates', _rectify(p)) File "/usr/local/lib/python2.7/dist-packages/telepot/init.py", line 434, in _api_request return api.request((self._token, method, params, files), *kwargs) File "/usr/local/lib/python2.7/dist-packages/telepot/api.py", line 130, in request r = fn(args, kwargs) # fn must be thread-safe File "/usr/local/lib/python2.7/dist-packages/urllib3/request.py", line 148, in request_encode_body return self.urlopen(method, url, extra_kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/poolmanager.py", line 321, in urlopen response = conn.urlopen(method, u.request_uri, **kw) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 639, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/local/lib/python2.7/dist-packages/urllib3/util/retry.py", line 357, in increment raise six.reraise(type(error), error, _stacktrace) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 601, in urlopen chunked=chunked) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 389, in _make_request self._raise_timeout(err=e, url=url, timeout_value=read_timeout) File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py", line 320, in _raise_timeout raise ReadTimeoutError(self, url, "Read timed out. (read timeout=%s)" % timeout_value) ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read timeout=50)