Fallervood
@Fallervood

С чего может быть такая ошибка в телеграм боте?

Делаю телеграм бот для автоматического оформления заказов + базы на google-sheets. Столкнулся с ошибкой, не видел такой никогда ранее. Полез разбираться ничего не понял. Вообщем SOS. Библиотека: pytelegrambotapi

2021-09-28 20:47:42,991 (__init__.py:580 MainThread) ERROR - TeleBot: "Infinity polling exception: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2607)"
2021-09-28 20:47:43,028 (__init__.py:582 MainThread) ERROR - TeleBot: "Exception traceback:
Traceback (most recent call last):
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\__init__.py", line 576, in infinity_polling
    self.polling(none_stop=True, timeout=timeout, long_polling_timeout=long_polling_timeout,
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\__init__.py", line 623, in polling
    self.__threaded_polling(non_stop, interval, timeout, long_polling_timeout, allowed_updates)
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\__init__.py", line 682, in __threaded_polling
    raise e
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\__init__.py", line 645, in __threaded_polling
    self.worker_pool.raise_exceptions()
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\util.py", line 130, in raise_exceptions
    raise self.exception_info
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\telebot\util.py", line 82, in run
    task(*args, **kwargs)
  File "C:/Users/Fallervood/PycharmProjects/tabac_Bot/main.py", line 196, in get_callback
    if reader.check_product(product=cart) <= user_count[call.message.chat.id]:
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\reader.py", line 167, in check_product
    values = service.spreadsheets().values().get(
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\googleapiclient\_helpers.py", line 131, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\googleapiclient\http.py", line 922, in execute
    resp, content = _retry_request(
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\googleapiclient\http.py", line 221, in _retry_request
    raise exception
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\googleapiclient\http.py", line 190, in _retry_request
    resp, content = http.request(uri, method, *args, **kwargs)
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\oauth2client\transport.py", line 173, in new_request
    resp, content = request(orig_request_method, uri, method, body,
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\oauth2client\transport.py", line 280, in request
    return http_callable(uri, method=method, body=body, headers=headers,
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\httplib2\__init__.py", line 1708, in request
    (response, content) = self._request(
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\httplib2\__init__.py", line 1424, in _request
    (response, content) = self._conn_request(conn, request_uri, method, body, headers)
  File "C:\Users\Fallervood\PycharmProjects\tabac_Bot\venv\lib\site-packages\httplib2\__init__.py", line 1376, in _conn_request
    response = conn.getresponse()
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1332, in getresponse
    response.begin()
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 303, in begin
    version, status, reason = self._read_status()
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 264, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\socket.py", line 669, in readinto
    return self._sock.recv_into(b)
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1241, in recv_into
    return self.read(nbytes, buffer)
  File "C:\Users\Fallervood\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1099, in read
    return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:2607)
"
  • Вопрос задан
  • 104 просмотра
Пригласить эксперта
Ответы на вопрос 1
@A9FM
Ошибка версии SSL, пробовал переустанавливать?
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы