Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error Timed Out #7

Closed
ghost opened this issue May 8, 2021 · 1 comment
Closed

Error Timed Out #7

ghost opened this issue May 8, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented May 8, 2021

python3 rdog.py
Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 402, in _make_request
six.raise_from(e, None)
File "", line 2, in raise_from
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 398, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.6/http/client.py", line 1373, in getresponse
response.begin()
File "/usr/lib/python3.6/http/client.py", line 311, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.6/http/client.py", line 272, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.6/ssl.py", line 1012, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.6/ssl.py", line 874, in read
return self._sslobj.read(len, buffer)
File "/usr/lib/python3.6/ssl.py", line 631, in read
v = 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 "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 253, in _request_wrapper
resp = self._con_pool.request(*args, **kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 70, in request
**urlopen_kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/request.py", line 148, in request_encode_body
return self.urlopen(method, url, **extra_kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/poolmanager.py", line 244, in urlopen
response = conn.urlopen(method, u.request_uri, **kw)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 666, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/util/retry.py", line 347, in increment
raise six.reraise(type(error), error, _stacktrace)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/packages/six.py", line 686, in reraise
raise value
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 617, in urlopen
chunked=chunked)
File "/home/user/.local/lib/python3.6/site-packages/telegram/vendor/ptb_urllib3/urllib3/connectionpool.py", line 405, in _make_request
exc_cls=ReadTimeoutError)
File "/home/user/.local/lib/python3.6/site-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 timeout=5.0)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "rdog.py", line 23, in
main()
File "rdog.py", line 19, in main
updater.start_polling()
File "/home/user/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 305, in start_polling
self._init_thread(self.dispatcher.start, "dispatcher", ready=dispatcher_ready)
File "/home/user/.local/lib/python3.6/site-packages/telegram/ext/updater.py", line 225, in _init_thread
name=f"Bot:{self.bot.id}:{name}",
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 331, in id
return self.bot.id
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 324, in bot
self._bot = self.get_me()
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 127, in decorator
result = func(*args, **kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 408, in get_me
result = self._post('getMe', timeout=timeout, api_kwargs=api_kwargs)
File "/home/user/.local/lib/python3.6/site-packages/telegram/bot.py", line 260, in _post
f'{self.base_url}/{endpoint}', data=data, timeout=effective_timeout
File "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 355, in post
**urlopen_kwargs,
File "/home/user/.local/lib/python3.6/site-packages/telegram/utils/request.py", line 255, in _request_wrapper
raise TimedOut() from error
telegram.error.TimedOut: Timed out

@ghost ghost closed this as completed May 8, 2021
@ghost
Copy link
Author

ghost commented May 8, 2021

The other issue resolved

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants