Advertisement
kopyl

Untitled

Sep 5th, 2021
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.77 KB | None | 0 0
  1. No error handlers are registered, logging exception.
  2. Traceback (most recent call last):
  3.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 402, in _make_request
  4.     six.raise_from(e, None)
  5.   File "<string>", line 2, in raise_from
  6.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 398, in _make_request
  7.     httplib_response = conn.getresponse()
  8.   File "/usr/lib/python3.9/http/client.py", line 1345, in getresponse
  9.     response.begin()
  10.   File "/usr/lib/python3.9/http/client.py", line 307, in begin
  11.     version, status, reason = self._read_status()
  12.   File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
  13.     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  14.   File "/usr/lib/python3.9/socket.py", line 704, in readinto
  15.     return self._sock.recv_into(b)
  16.   File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
  17.     return self.read(nbytes, buffer)
  18.   File "/usr/lib/python3.9/ssl.py", line 1099, in read
  19.     return self._sslobj.read(len, buffer)
  20. socket.timeout: The read operation timed out
  21.  
  22. During handling of the above exception, another exception occurred:
  23.  
  24. Traceback (most recent call last):
  25.   File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 259, in _request_wrapper
  26.     resp = self._con_pool.request(*args, **kwargs)
  27.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 68, in request
  28.     return self.request_encode_body(method, url, fields=fields,
  29.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
  30.     return self.urlopen(method, url, **extra_kw)
  31.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
  32.     response = conn.urlopen(method, u.request_uri, **kw)
  33.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 665, in urlopen
  34.     retries = retries.increment(method, url, error=e, _pool=self,
  35.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 347, in increment
  36.     raise six.reraise(type(error), error, _stacktrace)
  37.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/packages/six.py", line 686, in reraise
  38.     raise value
  39.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 614, in urlopen
  40.     httplib_response = self._make_request(conn, method, url,
  41.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 404, in _make_request
  42.     self._raise_timeout(err=e, url=url, timeout_value=read_timeout,
  43.   File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 321, in _raise_timeout
  44.     raise exc_cls(*args)
  45. telegram.vendor.ptb_urllib3.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read tim
  46. eout=5.0)
  47.  
  48. The above exception was the direct cause of the following exception:
  49.  
  50. Traceback (most recent call last):
  51.   File "/usr/local/lib/python3.9/dist-packages/telegram/ext/dispatcher.py", line 555, in process_update
  52.     handler.handle_update(update, self, check, context)
  53.   File "/usr/local/lib/python3.9/dist-packages/telegram/ext/handler.py", line 198, in handle_update
  54.     return self.callback(update, context)
  55.   File "/root/cdict/telegram_bot.py", line 560, in process_messages
  56.     print(process_regular_word_input(user))
  57.   File "/root/cdict/word_scraper.py", line 44, in wrapper
  58.     return function(*args, **kwds)
  59.   File "/root/cdict/telegram_bot.py", line 283, in process_regular_word_input
  60.     word_retrieval_status = send_message(
  61.   File "/root/cdict/telegram_bot.py", line 68, in send_message
  62.     message = bot.send_message(
  63.   File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 129, in decorator
  64.     result = func(*args, **kwargs)
  65.   File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 499, in send_message
  66.     return self._message(  # type: ignore[return-value]
  67.   File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 331, in _message
  68.     result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
  69.   File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 294, in _post
  70.     return self.request.post(
  71.   File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 356, in post
  72.     result = self._request_wrapper(
  73.   File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 261, in _request_wrapper
  74.     raise TimedOut() from error
  75. telegram.error.TimedOut: Timed out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement