- 2,500
- 1,131
Что-то бот не хочет запускаться.
Код:
C:\Users\User\Desktop\Bot>python bot.py
2020-02-05 15:16:19,186 (util.py:66 PollingThread) ERROR - TeleBot: "ConnectionE
rror occurred, args=(ProtocolError('Connection aborted.', ConnectionResetError(1
0054, 'Удаленный хост принудительно разорвал существующее подключение', None, 10
054, None)),)
Traceback (most recent call last):
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 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()
ConnectionResetError: [WinError 10054] Удаленный хост принудительно разорвал сущ
ествующее подключение
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 734, in rera
ise
raise value.with_traceback(tb)
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 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()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(1
0054, 'Удаленный хост принудительно разорвал существующее подключение', None, 10
054, None))
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 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetErro
r(10054, 'Удаленный хост принудительно разорвал существующее подключение', None,
10054, None))
"
Traceback (most recent call last):
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 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()
ConnectionResetError: [WinError 10054] Удаленный хост принудительно разорвал сущ
ествующее подключение
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 734, in rera
ise
raise value.with_traceback(tb)
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 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()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(1
0054, 'Удаленный хост принудительно разорвал существующее подключение', None, 10
054, None))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "bot.py", line 11, in <module>
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 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetErro
r(10054, 'Удаленный хост принудительно разорвал существующее подключение', None,
10054, None))