an exception occurs.
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
скажите пожалуйста что за ошибка и как ее решить?
Это предупреждение. Ошибка скорее всего выше. Либо нужны подробности
Task exception was never retrieved future: <Task finished name='Task-6' coro=<Dispatcher._process_polling_updates() done, defined at /Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py:407> exception=BadRequest("Can't parse reply keyboard markup json object")> Traceback (most recent call last): File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 415, in _process_polling_updates for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)): File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 235, in process_updates return await asyncio.gather(*tasks) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/handler.py", line 116, in notify response = await handler_obj.handler(*args, **partial_data) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 256, in process_update return await self.message_handlers.notify(update.message) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/dispatcher/handler.py", line 116, in notify response = await handler_obj.handler(*args, **partial_data) File "/Users/ukranians/PycharmProjects/Vape_Bot/handlers/user.py", line 64, in cmd_shop await message.answer('<b>Асортимент магазина:</b>\n\n' File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/types/message.py", line 397, in answer return await self.bot.send_message( File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/bot/bot.py", line 339, in send_message result = await self.request(api.Methods.SEND_MESSAGE, payload) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/bot/base.py", line 231, in request return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files, File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/bot/api.py", line 140, in make_request return check_result(method, response.content_type, response.status, await response.text()) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/bot/api.py", line 115, in check_result exceptions.BadRequest.detect(description) File "/Users/ukranians/PycharmProjects/Vape_Bot/venv/lib/python3.10/site-packages/aiogram/utils/exceptions.py", line 141, in detect raise cls(description) aiogram.utils.exceptions.BadRequest: Can't parse reply keyboard markup json object /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/asyncio/base_events.py:1897: RuntimeWarning: coroutine 'key_board' was never awaited handle = None # Needed to break cycles when an exception occurs. RuntimeWarning: Enable tracemalloc to get the object allocation traceback
прочитаай ошибку
RuntimeWarning: coroutine 'key_board' was never awaited Учим основы питона
Обсуждают сегодня