2022-09-09 20:22:08,878: OSError: write error
2022-09-09 20:22:08,903: Exception on /******-****-****-****-******** [POST]
Traceback (most recent call last):
File "/home/adminx/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 670, in urlopen
httplib_response = self._make_request(
File "/home/adminx/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 426, in _make_request
six.raise_from(e, None)
File "<string>", line 3, in raise_from
File "/home/adminx/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 421, in _make_request
httplib_response = conn.getresponse()
File "/usr/local/lib/python3.9/http/client.py", line 1345, in getresponse
response.begin()
File "/usr/local/lib/python3.9/http/client.py", line 307, in begin
version, status, reason = self._read_status()
File "/usr/local/lib/python3.9/http/client.py", line 268, in _read_status
line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
File "/usr/local/lib/python3.9/socket.py", line 704, in readinto
return self._sock.recv_into(b)
File "/usr/local/lib/python3.9/ssl.py", line 1241, in recv_into
return self.read(nbytes, buffer)
File "/usr/local/lib/python3.9/ssl.py", line 1099, in read
return self._sslobj.read(len, buffer)
ssl.SSLError: [SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2633)
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/home/adminx/.local/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
resp = conn.urlopen(
File "/home/adminx/.local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 726, in urlopen
retries = retries.increment(
File "/home/adminx/.local/lib/python3.9/site-packages/urllib3/util/retry.py", line 446, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot11111111111:BBDSHSDSJSJSDJSDJSDJDSJDS/sendMessage?chat_id=257458458&text=%D0%92%D1%8B%D0%B1%D0%B5%D1%80%D0%B8%D1%82%D0%B5+%D1%82%D0%B8%D0%BF&reply_markup=%7B%22inline_keyboard%22%3A+%5B%5B%7B%22text%22%3A+%22%5Cu0412%5Cu0430%5Cu043b%5Cu044e%5Cu0442%5Cu0430%22%2C+%22callback_data%22%3A+%22currency%22%7D%2C+%7B%22text%22%3A+%22%5Cu0411%5Cu0435%5Cu043d%5Cu0437%5Cu0438%5Cu043d%22%2C+%22callback_data%22%3A+%22oil%22%7D%5D%5D%7D&parse_mode=Markdown (Caused by SSLError(SSLError(1, '[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2633)')))
**NO MATCH**
During handling of the above exception, another exception occurred:
**NO MATCH**
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2051, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1501, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1499, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1485, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/home/adminx/mysite/flask_app.py", line 53, in webhook
bot.process_new_updates([telebot.types.Update.de_json(request.stream.read().decode("utf-8"))])
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 449, in process_new_updates
self.process_new_messages(new_messages)
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 481, in process_new_messages
self._notify_command_handlers(self.message_handlers, new_messages, 'message')
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 4064, in _notify_command_handlers
self._exec_task(message_handler['function'], message, pass_bot=message_handler['pass_bot'], task_type='handler')
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 780, in _exec_task
raise e
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 773, in _exec_task
task(*args, **kwargs)
File "/home/adminx/mysite/flask_app.py", line 67, in startCommand
bot.send_message(message.chat.id, 'Выберите тип', parse_mode='Markdown', reply_markup=type_markup())
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/__init__.py", line 1006, in send_message
apihelper.send_message(
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/apihelper.py", line 267, in send_message
return _make_request(token, method_url, params=payload, method='post')
File "/home/adminx/.local/lib/python3.9/site-packages/telebot/apihelper.py", line 146, in _make_request
result = _get_req_session().request(
File "/home/adminx/.local/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
resp = self.send(prep, **send_kwargs)
File "/home/adminx/.local/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
r = adapter.send(request, **kwargs)
File "/home/adminx/.local/lib/python3.9/site-packages/requests/adapters.py", line 563, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.telegram.org', port=443): Max retries exceeded with url: /bot11111111111:BBDSHSDSJSJSDJSDJSDJDSJDS/sendMessage?chat_id=257458458&text=%D0%92%D1%8B%D0%B1%D0%B5%D1%80%D0%B8%D1%82%D0%B5+%D1%82%D0%B8%D0%BF&reply_markup=%7B%22inline_keyboard%22%3A+%5B%5B%7B%22text%22%3A+%22%5Cu0412%5Cu0430%5Cu043b%5Cu044e%5Cu0442%5Cu0430%22%2C+%22callback_data%22%3A+%22currency%22%7D%2C+%7B%22text%22%3A+%22%5Cu0411%5Cu0435%5Cu043d%5Cu0437%5Cu0438%5Cu043d%22%2C+%22callback_data%22%3A+%22oil%22%7D%5D%5D%7D&parse_mode=Markdown (Caused by SSLError(SSLError(1, '[SSL: DECRYPTION_FAILED_OR_BAD_RECORD_MAC] decryption failed or bad record mac (_ssl.c:2633)')))