Тема: Bot Telegram
Показать сообщение отдельно

  #7  
Старый 05.02.2020, 23:03
Dmitriy Makarov
Флудер
Регистрация: 29.04.2017
Сообщений: 2,512
С нами: 4757849

Репутация: 183


По умолчанию

Цитата:
Сообщение от NK Team  

windscribe, там короче регаешь акк и тебе дают 2 гб интернета, а у меня короче закончились они и решил я зарегать новый и мне дали 10 гб))
Да и это что-то не особо пашет.

Цитата:
Сообщение от Спойлер  


Код:





Код:
C:\Users\User\Desktop\Bot>python bot.py
2020-02-05 22:01:38,385 (util.py:66 PollingThread) ERROR - TeleBot: "ReadTimeout
 occurred, args=(ReadTimeoutError("HTTPSConnectionPool(host='api.telegram.org',
port=443): Read timed out. (read timeout=3.5)"),)
Traceback (most recent call last):
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 376, in _m
ake_request
    self._validate_conn(conn)
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 994, in _v
alidate_conn
    conn.connect()
  File "D:\Python3\lib\site-packages\urllib3\connection.py", line 386, in connec
t
    self.sock = ssl_wrap_socket(
  File "D:\Python3\lib\site-packages\urllib3\util\ssl_.py", line 370, in ssl_wra
p_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "D:\Python3\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "D:\Python3\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "D:\Python3\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
socket.timeout: _ssl.c:1091: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Python3\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 719, in ur
lopen
    retries = retries.increment(
  File "D:\Python3\lib\site-packages\urllib3\util\retry.py", line 400, in increm
ent
    raise six.reraise(type(error), error, _stacktrace)
  File "D:\Python3\lib\site-packages\urllib3\packages\six.py", line 735, in rera
ise
    raise value
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 665, in ur
lopen
    httplib_response = self._make_request(
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 379, in _m
ake_request
    self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 330, in _r
aise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org'
, port=443): Read timed out. (read timeout=3.5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Python3\lib\site-packages\telebot\util.py", line 60, in run
    task(*args, **kwargs)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 279, in __retrie
ve_updates
    updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout
)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 249, in get_upda
tes
    json_updates = apihelper.get_updates(self.token, offset, limit, timeout, all
owed_updates)
  File "D:\Python3\lib\site-packages\telebot\apihelper.py", line 194, in get_upd
ates
    return _make_request(token, method_url, params=payload)
  File "D:\Python3\lib\site-packages\telebot\apihelper.py", line 57, in _make_re
quest
    result = _get_req_session().request(method, request_url, params=params, file
s=files,
  File "D:\Python3\lib\site-packages\requests\sessions.py", line 533, in request

    resp = self.send(prep, **send_kwargs)
  File "D:\Python3\lib\site-packages\requests\sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "D:\Python3\lib\site-packages\requests\adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.telegram.org', po
rt=443): Read timed out. (read timeout=3.5)
"
Traceback (most recent call last):
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 376, in _m
ake_request
    self._validate_conn(conn)
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 994, in _v
alidate_conn
    conn.connect()
  File "D:\Python3\lib\site-packages\urllib3\connection.py", line 386, in connec
t
    self.sock = ssl_wrap_socket(
  File "D:\Python3\lib\site-packages\urllib3\util\ssl_.py", line 370, in ssl_wra
p_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "D:\Python3\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "D:\Python3\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "D:\Python3\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
socket.timeout: _ssl.c:1091: The handshake operation timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\Python3\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 719, in ur
lopen
    retries = retries.increment(
  File "D:\Python3\lib\site-packages\urllib3\util\retry.py", line 400, in increm
ent
    raise six.reraise(type(error), error, _stacktrace)
  File "D:\Python3\lib\site-packages\urllib3\packages\six.py", line 735, in rera
ise
    raise value
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 665, in ur
lopen
    httplib_response = self._make_request(
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 379, in _m
ake_request
    self._raise_timeout(err=e, url=url, timeout_value=conn.timeout)
  File "D:\Python3\lib\site-packages\urllib3\connectionpool.py", line 330, in _r
aise_timeout
    raise ReadTimeoutError(
urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='api.telegram.org'
, port=443): Read timed out. (read timeout=3.5)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "bot.py", line 11, in 
    bot.polling(none_stop=True)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 392, in polling
    self.__threaded_polling(none_stop, interval, timeout)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 415, in __thread
ed_polling
    polling_thread.raise_exceptions()
  File "D:\Python3\lib\site-packages\telebot\util.py", line 79, in raise_excepti
ons
    six.reraise(self.exc_info[0], self.exc_info[1], self.exc_info[2])
  File "C:\Users\User\AppData\Roaming\Python\Python38\site-packages\six.py", lin
e 693, in reraise
    raise value
  File "D:\Python3\lib\site-packages\telebot\util.py", line 60, in run
    task(*args, **kwargs)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 279, in __retrie
ve_updates
    updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout
)
  File "D:\Python3\lib\site-packages\telebot\__init__.py", line 249, in get_upda
tes
    json_updates = apihelper.get_updates(self.token, offset, limit, timeout, all
owed_updates)
  File "D:\Python3\lib\site-packages\telebot\apihelper.py", line 194, in get_upd
ates
    return _make_request(token, method_url, params=payload)
  File "D:\Python3\lib\site-packages\telebot\apihelper.py", line 57, in _make_re
quest
    result = _get_req_session().request(method, request_url, params=params, file
s=files,
  File "D:\Python3\lib\site-packages\requests\sessions.py", line 533, in request

    resp = self.send(prep, **send_kwargs)
  File "D:\Python3\lib\site-packages\requests\sessions.py", line 646, in send
    r = adapter.send(request, **kwargs)
  File "D:\Python3\lib\site-packages\requests\adapters.py", line 529, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPSConnectionPool(host='api.telegram.org', po
rt=443): Read timed out. (read timeout=3.5)

C:\Users\User\Desktop\Bot>


 
Ответить с цитированием