Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- No error handlers are registered, logging exception.
- Traceback (most recent call last):
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 402, in _make_request
- six.raise_from(e, None)
- File "<string>", line 2, in raise_from
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 398, in _make_request
- httplib_response = conn.getresponse()
- File "/usr/lib/python3.9/http/client.py", line 1345, in getresponse
- response.begin()
- File "/usr/lib/python3.9/http/client.py", line 307, in begin
- version, status, reason = self._read_status()
- File "/usr/lib/python3.9/http/client.py", line 268, in _read_status
- line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
- File "/usr/lib/python3.9/socket.py", line 704, in readinto
- return self._sock.recv_into(b)
- File "/usr/lib/python3.9/ssl.py", line 1241, in recv_into
- return self.read(nbytes, buffer)
- File "/usr/lib/python3.9/ssl.py", line 1099, in read
- return self._sslobj.read(len, buffer)
- socket.timeout: The read operation timed out
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 259, in _request_wrapper
- resp = self._con_pool.request(*args, **kwargs)
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 68, in request
- return self.request_encode_body(method, url, fields=fields,
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
- return self.urlopen(method, url, **extra_kw)
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
- response = conn.urlopen(method, u.request_uri, **kw)
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 665, in urlopen
- retries = retries.increment(method, url, error=e, _pool=self,
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 347, in increment
- raise six.reraise(type(error), error, _stacktrace)
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/packages/six.py", line 686, in reraise
- raise value
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 614, in urlopen
- httplib_response = self._make_request(conn, method, url,
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 404, in _make_request
- self._raise_timeout(err=e, url=url, timeout_value=read_timeout,
- File "/usr/local/lib/python3.9/dist-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 321, in _raise_timeout
- raise exc_cls(*args)
- telegram.vendor.ptb_urllib3.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org', port=443): Read timed out. (read tim
- eout=5.0)
- The above exception was the direct cause of the following exception:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.9/dist-packages/telegram/ext/dispatcher.py", line 555, in process_update
- handler.handle_update(update, self, check, context)
- File "/usr/local/lib/python3.9/dist-packages/telegram/ext/handler.py", line 198, in handle_update
- return self.callback(update, context)
- File "/root/cdict/telegram_bot.py", line 560, in process_messages
- print(process_regular_word_input(user))
- File "/root/cdict/word_scraper.py", line 44, in wrapper
- return function(*args, **kwds)
- File "/root/cdict/telegram_bot.py", line 283, in process_regular_word_input
- word_retrieval_status = send_message(
- File "/root/cdict/telegram_bot.py", line 68, in send_message
- message = bot.send_message(
- File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 129, in decorator
- result = func(*args, **kwargs)
- File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 499, in send_message
- return self._message( # type: ignore[return-value]
- File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 331, in _message
- result = self._post(endpoint, data, timeout=timeout, api_kwargs=api_kwargs)
- File "/usr/local/lib/python3.9/dist-packages/telegram/bot.py", line 294, in _post
- return self.request.post(
- File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 356, in post
- result = self._request_wrapper(
- File "/usr/local/lib/python3.9/dist-packages/telegram/utils/request.py", line 261, in _request_wrapper
- raise TimedOut() from error
- telegram.error.TimedOut: Timed out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement