Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2020-11-02 15:51:44.396 | ERROR | logging:exception:1469 - Error handling request
- Traceback (most recent call last):
- File "/app/app/handlers/base/start_command.py", line 50, in issue_headcategories
- await msg.edit_text(text=title, reply_markup=categories_markup)
- │ │ │ └ <aiogram.types.inline_keyboard.InlineKeyboardMarkup object at 0x7f9f99953bb0>
- │ │ └ 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бот в теме ...
- │ └ <function Message.edit_text at 0x7f9f9922e700>
- └ <aiogram.types.message.Message object at 0x7f9f954d1670>
- File "/usr/local/lib/python3.8/site-packages/aiogram/types/message.py", line 1898, in edit_text
- return await self.bot.edit_message_text(
- │ └ <property object at 0x7f9f994db540>
- └ <aiogram.types.message.Message object at 0x7f9f954d1670>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 1617, in edit_message_text
- result = await self.request(api.Methods.EDIT_MESSAGE_TEXT, payload)
- │ │ │ │ │ └ {'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бо...
- │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f9f99254520>
- │ │ │ └ <class 'aiogram.bot.api.Methods'>
- │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- │ └ <function BaseBot.request at 0x7f9f9925d790>
- └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
- return await api.make_request(self.session, self.__token, method, data, files,
- │ │ │ │ │ │ │ └ None
- │ │ │ │ │ │ └ {'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бо...
- │ │ │ │ │ └ 'editMessageText'
- │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- │ │ │ └ <property object at 0x7f9f9982fb80>
- │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- │ └ <function make_request at 0x7f9f99647d30>
- └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
- return check_result(method, response.content_type, response.status, await response.text())
- │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f9f993cb9d0>
- │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
- │ │ │ │ │ └ 400
- │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
- │ │ │ └ <property object at 0x7f9f99740f40>
- │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
- │ └ 'editMessageText'
- └ <function check_result at 0x7f9f99647790>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 78, in check_result
- exceptions.BadRequest.detect(description)
- │ │ │ └ "Bad Request: message can't be edited"
- │ │ └ <classmethod object at 0x7f9f992546a0>
- │ └ <class 'aiogram.utils.exceptions.BadRequest'>
- └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
- raise err(cls.text or description)
- │ │ │ └ "bad request: message can't be edited"
- │ │ └ None
- │ └ <class 'aiogram.utils.exceptions.BadRequest'>
- └ <class 'aiogram.utils.exceptions.MessageCantBeEdited'>
- aiogram.utils.exceptions.MessageCantBeEdited: Message can't be edited
- During handling of the above exception, another exception occurred:
- Traceback (most recent call last):
- File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
- return _run_code(code, main_globals, None,
- │ │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
- │ └ <code object <module> at 0x7f9f9a9863a0, file "/app/app/__main__.py", line 1>
- └ <function _run_code at 0x7f9f9a9d1160>
- File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
- exec(code, run_globals)
- │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
- └ <code object <module> at 0x7f9f9a9863a0, file "/app/app/__main__.py", line 1>
- File "/app/app/__main__.py", line 32, in <module>
- web.run_app(app_factory(misc.app), port=config.BOT_PUBLIC_PORT)
- │ │ │ │ │ │ └ 80
- │ │ │ │ │ └ <module 'app.config' from '/app/app/config.py'>
- │ │ │ │ └ <Application 0x7f9f9a8734c0>
- │ │ │ └ <module 'app.misc' from '/app/app/misc.py'>
- │ │ └ <function app_factory at 0x7f9f9a937790>
- │ └ <function run_app at 0x7f9f9a86f160>
- └ <module 'aiohttp.web' from '/usr/local/lib/python3.8/site-packages/aiohttp/web.py'>
- File "/usr/local/lib/python3.8/site-packages/aiohttp/web.py", line 508, in run_app
- loop.run_until_complete(main_task)
- │ │ └ <Task pending name='Task-1' coro=<_run_app() running at /usr/local/lib/python3.8/site-packages/aiohttp/web.py:429> wait_for=<...
- │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
- └ <uvloop.Loop running=True closed=False debug=False>
- > File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
- resp = await self._request_handler(request)
- │ │ └ <Request POST /webhook/_8xt4HRhG-8uRMYBs__loPgJtRJOxJx5LwKpce0YH2k-bZhpuxl3rH7wtcW8Yeru/1319995825:AAGWmNtxpqhg1tg2AUpQzMANif...
- │ └ <member '_request_handler' of 'RequestHandler' objects>
- └ <RequestHandler connected>
- File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
- resp = await handler(request)
- │ └ <Request POST /webhook/_8xt4HRhG-8uRMYBs__loPgJtRJOxJx5LwKpce0YH2k-bZhpuxl3rH7wtcW8Yeru/1319995825:AAGWmNtxpqhg1tg2AUpQzMANif...
- └ <class 'app.web_handlers.tg_updates.WebhookRequestHandler'>
- File "/usr/local/lib/python3.8/site-packages/aiohttp/web_urldispatcher.py", line 948, in _iter
- resp = await method()
- └ <bound method WebhookRequestHandler.post of <app.web_handlers.tg_updates.WebhookRequestHandler object at 0x7f9f98280490>>
- File "/app/app/web_handlers/tg_updates.py", line 39, in post
- results = await self.process_update(update)
- │ │ └ <aiogram.types.update.Update object at 0x7f9f954d14c0>
- │ └ <function WebhookRequestHandler.process_update at 0x7f9f999b6790>
- └ <app.web_handlers.tg_updates.WebhookRequestHandler object at 0x7f9f98280490>
- File "/app/app/web_handlers/tg_updates.py", line 85, in process_update
- return fut.result()
- │ └ <method 'result' of '_asyncio.Task' objects>
- └ <Task finished name='Task-27331' coro=<Handler.notify() done, defined at /usr/local/lib/python3.8/site-packages/aiogram/dispa...
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
- response = await handler_obj.handler(*args, **partial_data)
- │ │ │ └ {}
- │ │ └ (<aiogram.types.update.Update object at 0x7f9f954d14c0>,)
- │ └ <bound method Dispatcher.process_update of <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7f9f98daf490>>
- └ Handler.HandlerObj(handler=<bound method Dispatcher.process_update of <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7...
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 246, in process_update
- return await self.message_handlers.notify(update.message)
- │ │ │ │ └ <aiogram.types.fields.Field object at 0x7f9f99640be0>
- │ │ │ └ <aiogram.types.update.Update object at 0x7f9f954d14c0>
- │ │ └ <function Handler.notify at 0x7f9f998345e0>
- │ └ <aiogram.dispatcher.handler.Handler object at 0x7f9f97e02580>
- └ <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7f9f98daf490>
- File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
- response = await handler_obj.handler(*args, **partial_data)
- │ │ │ └ {}
- │ │ └ (<aiogram.types.message.Message object at 0x7f9f954d1670>,)
- │ └ <function cmd_start at 0x7f9f999a48b0>
- └ Handler.HandlerObj(handler=<function cmd_start at 0x7f9f999a48b0>, spec=FullArgSpec(args=['msg'], varargs=None, varkw=None, d...
- File "/app/app/handlers/base/start_command.py", line 24, in cmd_start
- await issue_headcategories(msg)
- │ └ <aiogram.types.message.Message object at 0x7f9f954d1670>
- └ <function issue_headcategories at 0x7f9f999a4940>
- File "/app/app/handlers/base/start_command.py", line 52, in issue_headcategories
- await msg.answer(text=title, reply_markup=categories_markup)
- │ │ │ └ <aiogram.types.inline_keyboard.InlineKeyboardMarkup object at 0x7f9f99953bb0>
- │ │ └ 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бот в теме ...
- │ └ <function Message.answer at 0x7f9f9921c550>
- └ <aiogram.types.message.Message object at 0x7f9f954d1670>
- File "/usr/local/lib/python3.8/site-packages/aiogram/types/message.py", line 316, in answer
- return await self.bot.send_message(
- │ └ <property object at 0x7f9f994db540>
- └ <aiogram.types.message.Message object at 0x7f9f954d1670>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 219, in send_message
- result = await self.request(api.Methods.SEND_MESSAGE, payload)
- │ │ │ │ │ └ {'chat_id': 537574720, 'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @News...
- │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f9f996484f0>
- │ │ │ └ <class 'aiogram.bot.api.Methods'>
- │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- │ └ <function BaseBot.request at 0x7f9f9925d790>
- └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
- return await api.make_request(self.session, self.__token, method, data, files,
- │ │ │ │ │ │ │ └ None
- │ │ │ │ │ │ └ {'chat_id': 537574720, 'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @News...
- │ │ │ │ │ └ 'sendMessage'
- │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- │ │ │ └ <property object at 0x7f9f9982fb80>
- │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
- │ └ <function make_request at 0x7f9f99647d30>
- └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
- return check_result(method, response.content_type, response.status, await response.text())
- │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f9f993cb9d0>
- │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
- │ │ │ │ │ │ <CIM...
- │ │ │ │ │ └ 403
- │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
- │ │ │ │ <CIM...
- │ │ │ └ <property object at 0x7f9f99740f40>
- │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
- │ │ <CIM...
- │ └ 'sendMessage'
- └ <function check_result at 0x7f9f99647790>
- File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 84, in check_result
- exceptions.Unauthorized.detect(description)
- │ │ │ └ 'Forbidden: bot was blocked by the user'
- │ │ └ <classmethod object at 0x7f9f992546a0>
- │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
- └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
- File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
- raise err(cls.text or description)
- │ │ │ └ 'forbidden: bot was blocked by the user'
- │ │ └ None
- │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
- └ <class 'aiogram.utils.exceptions.BotBlocked'>
Add Comment
Please, Sign In to add comment