когда использую самый обыкновенный requests.get()
питон выдает ошибки ssl сертификата
Traceback (most recent call last): File
«C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3connectionpool.py»,
line 603, in urlopen
chunked=chunked) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3connectionpool.py»,
line 344, in _make_request
self._validate_conn(conn) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3connectionpool.py»,
line 843, in _validate_conn
conn.connect() File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3connection.py»,
line 370, in connect
ssl_context=context) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3utilssl_.py»,
line 355, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname) File
«C:UsersADMINAppDataLocalProgramsPythonPython37libssl.py»,
line 412, in wrap_socket
session=session File «C:UsersADMINAppDataLocalProgramsPythonPython37libssl.py»,
line 853, in _create
self.do_handshake() File «C:UsersADMINAppDataLocalProgramsPythonPython37libssl.py»,
line 1117, in do_handshake
self._sslobj.do_handshake() ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get
local issuer certificate (_ssl.c:1056)During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
«C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestsadapters.py»,
line 449, in send
timeout=timeout File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3connectionpool.py»,
line 641, in urlopen
_stacktrace=sys.exc_info()[2]) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesurllib3utilretry.py»,
line 399, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError:
HTTPSConnectionPool(host=’e.mail.ru’, port=443): Max retries exceeded
with url: / (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get
local issuer certificate (_ssl.c:1056)’)))During handling of the above exception, another exception occurred:
Traceback (most recent call last): File
«C:UsersADMINDesktoptest1.py», line 3, in
requests.get(«https://e.mail.ru») File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestsapi.py»,
line 75, in get
return request(‘get’, url, params=params, **kwargs) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestsapi.py»,
line 60, in request
return session.request(method=method, url=url, **kwargs) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestssessions.py»,
line 533, in request
resp = self.send(prep, **send_kwargs) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestssessions.py»,
line 646, in send
r = adapter.send(request, **kwargs) File «C:UsersADMINAppDataLocalProgramsPythonPython37libsite-packagesrequestsadapters.py»,
line 514, in send
raise SSLError(e, request=request) requests.exceptions.SSLError: HTTPSConnectionPool(host=’e.mail.ru’, port=443): Max retries exceeded
with url: / (Caused by SSLError(SSLCertVerificationError(1, ‘[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get
local issuer certificate (_ssl.c:1056)’)))
Попробовал воспользоваться пипом, после чего вылетела вот такая ошибка
C:UsersADMIN>cd AppDataLocalProgramsPythonPython37scripts
C:UsersADMINAppDataLocalProgramsPythonPython37Scripts>pip
install ssl Collecting ssl Retrying (Retry(total=4, connect=None,
read=None, redirect=None, status=None)) after connection broken by
‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFI
CATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certif icate (_ssl.c:1056)’))’: /simple/ssl/ Retrying
(Retry(total=3, connect=None, read=None, redirect=None, status=None))
after connection broken by ‘SSLError(SSLCertVerificationError(1,
‘[SSL: CERTIFI CATE_VERIFY_FAILED] certificate verify failed: unable
to get local issuer certif icate (_ssl.c:1056)’))’: /simple/ssl/
Retrying (Retry(total=2, connect=None, read=None, redirect=None,
status=None)) after connection broken by
‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFI
CATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certif icate (_ssl.c:1056)’))’: /simple/ssl/ Retrying
(Retry(total=1, connect=None, read=None, redirect=None, status=None))
after connection broken by ‘SSLError(SSLCertVerificationError(1,
‘[SSL: CERTIFI CATE_VERIFY_FAILED] certificate verify failed: unable
to get local issuer certif icate (_ssl.c:1056)’))’: /simple/ssl/
Retrying (Retry(total=0, connect=None, read=None, redirect=None,
status=None)) after connection broken by
‘SSLError(SSLCertVerificationError(1, ‘[SSL: CERTIFI
CATE_VERIFY_FAILED] certificate verify failed: unable to get local
issuer certif icate (_ssl.c:1056)’))’: /simple/ssl/ Could not fetch
URL https://pypi.org/simple/ssl/: There was a problem confirmi ng the
ssl certificate: HTTPSConnectionPool(host=’pypi.org’, port=443): Max
retr ies exceeded with url: /simple/ssl/ (Caused by
SSLError(SSLCertVerificationError (1, ‘[SSL:
CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get l
ocal issuer certificate (_ssl.c:1056)’))) — skipping Could not find
a version that satisfies the requirement ssl (from versions: ) No
matching distribution found for ssl You are using pip version 19.0.3,
however version 19.2 is available. You should consider upgrading via
the ‘python -m pip install —upgrade pip’ command.
так же пробовал добавить сайты в исключения командой
pip install —trusted-host pypi.org —trusted-host
files.pythonhosted.org pip setuptools
однако это тоже не принесло никаких результатов, ошибка все та же
Искал решение проблемы, но все они для макоси, в то время как у меня это все происходит на винде. Питон версии 3.7.3
Здравствуйте, столкнулся с такой проблемой, после того как сменил провайдера, начались проблемы в разных requests запрос на Python. Особенно это касается ботов для Telegram и VK. Когда бот только запускается всё работает хорошо, но если ему не присылать сообщения 1-2 часа, то он выдаёт ошибку (ниже), после 2-х сообщений он продолжает работать в обычном режиме. Сразу говорю, дело не в прокси, без прокси такая же ошибка. Читал про эту ошибку на GitHub’е, там решилась проблема откатом requests до 2.10.0 , но мне это не помогло.
2019-08-26 16:42:56,357 (util.py:65 WorkerThread1) ERROR - TeleBot: "ProxyError occurred, args=(MaxRetryError("HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot823885915:AAF9xheu6j-woiV9P8u9lqGdODr7KpNyXeM/sendMessage?chat_id=-320766392&text=***иероглифы*** (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))"),)
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/connectionpool.py", line 385, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/connectionpool.py", line 578, in urlopen
chunked=chunked)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/connectionpool.py", line 387, in _make_request
httplib_response = conn.getresponse()
File "/usr/lib/python3.7/http/client.py", line 1321, in getresponse
response.begin()
File "/usr/lib/python3.7/http/client.py", line 296, in begin
version, status, reason = self._read_status()
File "/usr/lib/python3.7/http/client.py", line 257, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/lib/python3.7/socket.py", line 589, in readinto
return self._sock.recv_into(b)
File "/usr/lib/python3.7/ssl.py", line 1052, in recv_into
return self.read(nbytes, buffer)
File "/usr/lib/python3.7/ssl.py", line 911, in read
return self._sslobj.read(len, buffer)
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/adapters.py", line 403, in send
timeout=timeout
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/connectionpool.py", line 623, in urlopen
_stacktrace=sys.exc_info()[2])
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/util/retry.py", line 281, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
requests.packages.urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot823885915:AAF9xheu6j-woiV9P8u9lqGdODr7KpNyXeM/sendMessage?chat_id=-320766392&text=***иероглифы*** (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/util.py", line 59, in run
task(*args, **kwargs)
File "handler.py", line 70, in help_command
'Команды:n1. "@username /добавить" - добавить задание пользователю (После этой команды действовать по инструкции) nПример: "@fm1ck3y /добавить"n'
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/__init__.py", line 598, in send_message
reply_markup, parse_mode, disable_notification))
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 140, in send_message
return _make_request(token, method_url, params=payload, method='post')
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 54, in _make_request
timeout=(connect_timeout, read_timeout), proxies=proxy)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/sessions.py", line 475, in request
resp = self.send(prep, **send_kwargs)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/sessions.py", line 585, in send
r = adapter.send(request, **kwargs)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/adapters.py", line 465, in send
raise ProxyError(e, request=request)
requests.exceptions.ProxyError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot823885915:AAF9xheu6j-woiV9P8u9lqGdODr7KpNyXeM/sendMessage?chat_id=-320766392&text=***иероглифы*** (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))
"
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/util.py", line 59, in run
task(*args, **kwargs)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/__init__.py", line 276, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/__init__.py", line 246, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 75, in _check_result
raise ApiException(msg, method_name, result)
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']
2019-08-26 16:43:38,612 (util.py:65 WorkerThread2) ERROR - TeleBot: "ProxyError occurred, args=(MaxRetryError("HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot823885915:AAF9xheu6j-woiV9P8u9lqGdODr7KpNyXeM/sendMessage?chat_id=-320766392&text=%D0%9A%D0%BE%D0%BC%D0%B0%D0%BD%D0%B4%D1%8B%3A%0A1.+%22%40username+%***иероглифы*** (Caused by ProxyError('Cannot connect to proxy.', ConnectionResetError(104, 'Connection reset by peer')))"),)
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/requests/packages/urllib3/connectionpool.py", line 385, in _make_request
httplib_response = conn.getresponse(buffering=True)
TypeError: getresponse() got an unexpected keyword argument 'buffering'
During handling of the above exception, another exception occurred:
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/util.py", line 198, in or_set
self._set()
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/util.py", line 211, in <lambda>
e.set = lambda: or_set(e)
2019-08-26 16:52:27,391 (util.py:65 PollingThread) ERROR - TeleBot: "ApiException occurred, args=('A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:n[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']',)
Traceback (most recent call last):
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/util.py", line 59, in run
task(*args, **kwargs)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/__init__.py", line 276, in __retrieve_updates
updates = self.get_updates(offset=(self.last_update_id + 1), timeout=timeout)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/__init__.py", line 246, in get_updates
json_updates = apihelper.get_updates(self.token, offset, limit, timeout, allowed_updates)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 180, in get_updates
return _make_request(token, method_url, params=payload)
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 56, in _make_request
return _check_result(method_name, result)['result']
File "/home/m1ck3y/.local/lib/python3.7/site-packages/telebot/apihelper.py", line 75, in _check_result
raise ApiException(msg, method_name, result)
telebot.apihelper.ApiException: A request to the Telegram API was unsuccessful. The server returned HTTP 409 Conflict. Response body:
[b'{"ok":false,"error_code":409,"description":"Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}']
"
Welemir1, verify=False делал, чтобы не проверять сертификат при запросе, вообщем перебирал все возможные варианты решения этой ошибки
Кликните здесь для просмотра всего текста
Traceback (most recent call last):
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 670, in urlopen
httplib_response = self._make_request(
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 381, in _make_request
self._validate_conn(conn)
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 978, in _validate_conn
conn.connect()
File «C:Program FilesPython38libsite-packagesurllib3connection.py», line 343, in connect
self.ssl_context = create_urllib3_context(
File «C:Program FilesPython38libsite-packagesurllib3utilssl_.py», line 301, in create_urllib3_context
context.keylog_filename = os.environ.get(«SSLKEYLOGFILE»)
PermissionError: [Errno 13] Permission denied: ‘C:\Users\dns\Desktop’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:Program FilesPython38libsite-packagesrequestsadapters.py», line 439, in send
resp = conn.urlopen(
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 726, in urlopen
retries = retries.increment(
File «C:Program FilesPython38libsite-packagesurllib3utilretry.py», line 403, in increment
raise six.reraise(type(error), error, _stacktrace)
File «C:Program FilesPython38libsite-packagesurllib3packagessix.py», line 734, in reraise
raise value.with_traceback(tb)
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 670, in urlopen
httplib_response = self._make_request(
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 381, in _make_request
self._validate_conn(conn)
File «C:Program FilesPython38libsite-packagesurllib3connectionpool.py», line 978, in _validate_conn
conn.connect()
File «C:Program FilesPython38libsite-packagesurllib3connection.py», line 343, in connect
self.ssl_context = create_urllib3_context(
File «C:Program FilesPython38libsite-packagesurllib3utilssl_.py», line 301, in create_urllib3_context
context.keylog_filename = os.environ.get(«SSLKEYLOGFILE»)
urllib3.exceptions.ProtocolError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File «C:Program FilesPython38Projectkurs.py», line 2, in <module>
response = requests.get(‘https://yandex.ru/’, verify=False)
File «C:Program FilesPython38libsite-packagesrequestsapi.py», line 76, in get
return request(‘get’, url, params=params, **kwargs)
File «C:Program FilesPython38libsite-packagesrequestsapi.py», line 61, in request
return session.request(method=method, url=url, **kwargs)
File «C:Program FilesPython38libsite-packagesrequestssessions.py», line 530, in request
resp = self.send(prep, **send_kwargs)
File «C:Program FilesPython38libsite-packagesrequestssessions.py», line 643, in send
r = adapter.send(request, **kwargs)
File «C:Program FilesPython38libsite-packagesrequestsadapters.py», line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: (‘Connection aborted.’, PermissionError(13, ‘Permission denied’))
I simplified everything just to:
bot.py
import os
import time
import logging
import telebot
from telebot import apihelper
# Logger
logger = telebot.logger
telebot.logger.setLevel(logging.DEBUG)
# Set proxy
apihelper.proxy = {'http': TG_PROXY}
# Init bot
bot = telebot.TeleBot(TG_BOT_TOKEN)
app.py
from flask import Flask, jsonify
from bot import bot
@app.route('/healthcheck')
def any():
result = bot.get_me()
if result:
return jsonify(result)
return jsonify({'result': None})
I tried to turn off a proxy since on my current network I can use telegram directly but I still get the same error (and with proxy enabled I still got the same)
bot_1 | 2018-07-06 09:40:21,611 (apihelper.py:45 MainThread) DEBUG - TeleBot: "Request: method=get url=https://api.telegram.org/bot607551944:AAG08U8uEnj-ERDmLOCWUl2Yaa80Q3eXHVw/getMe params=None files=None"
bot_1 | [2018-07-06 09:40:21 +0000] [48] [ERROR] Socket error processing request.
bot_1 | Traceback (most recent call last):
bot_1 | File "/usr/local/site-packages/urllib3/connectionpool.py", line 600, in urlopen
bot_1 | chunked=chunked)
bot_1 | File "/usr/local/site-packages/urllib3/connectionpool.py", line 343, in _make_request
bot_1 | self._validate_conn(conn)
bot_1 | File "/usr/local/site-packages/urllib3/connectionpool.py", line 849, in _validate_conn
bot_1 | conn.connect()
bot_1 | File "/usr/local/site-packages/urllib3/connection.py", line 356, in connect
bot_1 | ssl_context=context)
bot_1 | File "/usr/local/site-packages/urllib3/util/ssl_.py", line 359, in ssl_wrap_socket
bot_1 | return context.wrap_socket(sock, server_hostname=server_hostname)
bot_1 | File "/usr/local/lib-python/3/ssl.py", line 385, in wrap_socket
bot_1 | _context=self)
bot_1 | File "/usr/local/lib-python/3/ssl.py", line 760, in __init__
bot_1 | self.do_handshake()
bot_1 | File "/usr/local/lib-python/3/ssl.py", line 996, in do_handshake
bot_1 | self._sslobj.do_handshake()
bot_1 | File "/usr/local/lib-python/3/ssl.py", line 641, in do_handshake
bot_1 | self._sslobj.do_handshake()
bot_1 | File "/usr/local/lib_pypy/_cffi_ssl/_stdssl/__init__.py", line 354, in do_handshake
bot_1 | raise pyssl_error(self, ret)
bot_1 | _cffi_ssl._stdssl.error.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
bot_1 |
bot_1 | During handling of the above exception, another exception occurred:
bot_1 |
bot_1 | Traceback (most recent call last):
bot_1 | File "/usr/local/site-packages/requests/adapters.py", line 445, in send
bot_1 | timeout=timeout
bot_1 | File "/usr/local/site-packages/urllib3/connectionpool.py", line 638, in urlopen
bot_1 | _stacktrace=sys.exc_info()[2])
bot_1 | File "/usr/local/site-packages/urllib3/util/retry.py", line 398, in increment
bot_1 | raise MaxRetryError(_pool, url, error or ResponseError(cause))
bot_1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot607551944:AAG08U8uEnj-ERDmLOCWUl2Yaa80Q3eXHVw/getMe (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),))
bot_1 |
bot_1 | During handling of the above exception, another exception occurred:
bot_1 |
bot_1 | Traceback (most recent call last):
bot_1 | File "/usr/local/site-packages/gunicorn/workers/sync.py", line 135, in handle
bot_1 | self.handle_request(listener, req, client, addr)
bot_1 | File "/usr/local/site-packages/gunicorn/workers/sync.py", line 191, in handle_request
bot_1 | six.reraise(*sys.exc_info())
bot_1 | File "/usr/local/site-packages/gunicorn/six.py", line 625, in reraise
bot_1 | raise value
bot_1 | File "/usr/local/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
bot_1 | respiter = self.wsgi(environ, resp.start_response)
bot_1 | File "/usr/local/site-packages/flask/app.py", line 2309, in __call__
bot_1 | return self.wsgi_app(environ, start_response)
bot_1 | File "/usr/local/site-packages/werkzeug/contrib/fixers.py", line 152, in __call__
bot_1 | return self.app(environ, start_response)
bot_1 | File "/usr/local/site-packages/flask/app.py", line 2295, in wsgi_app
bot_1 | response = self.handle_exception(e)
bot_1 | File "/usr/local/site-packages/flask/app.py", line 1741, in handle_exception
bot_1 | reraise(exc_type, exc_value, tb)
bot_1 | File "/usr/local/site-packages/flask/_compat.py", line 35, in reraise
bot_1 | raise value
bot_1 | File "/usr/local/site-packages/flask/app.py", line 2292, in wsgi_app
bot_1 | response = self.full_dispatch_request()
bot_1 | File "/usr/local/site-packages/flask/app.py", line 1815, in full_dispatch_request
bot_1 | rv = self.handle_user_exception(e)
bot_1 | File "/usr/local/site-packages/flask/app.py", line 1718, in handle_user_exception
bot_1 | reraise(exc_type, exc_value, tb)
bot_1 | File "/usr/local/site-packages/flask/_compat.py", line 35, in reraise
bot_1 | raise value
bot_1 | File "/usr/local/site-packages/flask/app.py", line 1813, in full_dispatch_request
bot_1 | rv = self.dispatch_request()
bot_1 | File "/usr/local/site-packages/flask/app.py", line 1799, in dispatch_request
bot_1 | return self.view_functions[rule.endpoint](**req.view_args)
bot_1 | File "/usr/src/server/app/__init__.py", line 36, in any
bot_1 | result = bot.get_me()
bot_1 | File "/usr/local/site-packages/telebot/__init__.py", line 360, in get_me
bot_1 | result = apihelper.get_me(self.token)
bot_1 | File "/usr/local/site-packages/telebot/apihelper.py", line 93, in get_me
bot_1 | return _make_request(token, method_url)
bot_1 | File "/usr/local/site-packages/telebot/apihelper.py", line 54, in _make_request
bot_1 | timeout=(connect_timeout, read_timeout), proxies=proxy)
bot_1 | File "/usr/local/site-packages/requests/sessions.py", line 512, in request
bot_1 | resp = self.send(prep, **send_kwargs)
bot_1 | File "/usr/local/site-packages/raven/breadcrumbs.py", line 326, in send
bot_1 | resp = real_send(self, request, *args, **kwargs)
bot_1 | File "/usr/local/site-packages/requests/sessions.py", line 622, in send
bot_1 | r = adapter.send(request, **kwargs)
bot_1 | File "/usr/local/site-packages/requests/adapters.py", line 511, in send
bot_1 | raise SSLError(e, request=request)
bot_1 | requests.exceptions.SSLError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot607551944:AAG08U8uEnj-ERDmLOCWUl2Yaa80Q3eXHVw/getMe (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed'),))
Loading