artursn

Untitled

Nov 2nd, 2020
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.19 KB | None | 0 0
  1. 2020-11-02 15:51:44.396 | ERROR | logging:exception:1469 - Error handling request
  2. Traceback (most recent call last):
  3.  
  4. File "/app/app/handlers/base/start_command.py", line 50, in issue_headcategories
  5. await msg.edit_text(text=title, reply_markup=categories_markup)
  6. │ │ │ └ <aiogram.types.inline_keyboard.InlineKeyboardMarkup object at 0x7f9f99953bb0>
  7. │ │ └ 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бот в теме ...
  8. │ └ <function Message.edit_text at 0x7f9f9922e700>
  9. └ <aiogram.types.message.Message object at 0x7f9f954d1670>
  10.  
  11. File "/usr/local/lib/python3.8/site-packages/aiogram/types/message.py", line 1898, in edit_text
  12. return await self.bot.edit_message_text(
  13. │ └ <property object at 0x7f9f994db540>
  14. └ <aiogram.types.message.Message object at 0x7f9f954d1670>
  15. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 1617, in edit_message_text
  16. result = await self.request(api.Methods.EDIT_MESSAGE_TEXT, payload)
  17. │ │ │ │ │ └ {'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бо...
  18. │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f9f99254520>
  19. │ │ │ └ <class 'aiogram.bot.api.Methods'>
  20. │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  21. │ └ <function BaseBot.request at 0x7f9f9925d790>
  22. └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  23. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
  24. return await api.make_request(self.session, self.__token, method, data, files,
  25. │ │ │ │ │ │ │ └ None
  26. │ │ │ │ │ │ └ {'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бо...
  27. │ │ │ │ │ └ 'editMessageText'
  28. │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  29. │ │ │ └ <property object at 0x7f9f9982fb80>
  30. │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  31. │ └ <function make_request at 0x7f9f99647d30>
  32. └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  33. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
  34. return check_result(method, response.content_type, response.status, await response.text())
  35. │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f9f993cb9d0>
  36. │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
  37. │ │ │ │ │ └ 400
  38. │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
  39. │ │ │ └ <property object at 0x7f9f99740f40>
  40. │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/editMessageText) [400 Bad Request]...
  41. │ └ 'editMessageText'
  42. └ <function check_result at 0x7f9f99647790>
  43. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 78, in check_result
  44. exceptions.BadRequest.detect(description)
  45. │ │ │ └ "Bad Request: message can't be edited"
  46. │ │ └ <classmethod object at 0x7f9f992546a0>
  47. │ └ <class 'aiogram.utils.exceptions.BadRequest'>
  48. └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
  49. File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
  50. raise err(cls.text or description)
  51. │ │ │ └ "bad request: message can't be edited"
  52. │ │ └ None
  53. │ └ <class 'aiogram.utils.exceptions.BadRequest'>
  54. └ <class 'aiogram.utils.exceptions.MessageCantBeEdited'>
  55.  
  56. aiogram.utils.exceptions.MessageCantBeEdited: Message can't be edited
  57.  
  58.  
  59. During handling of the above exception, another exception occurred:
  60.  
  61.  
  62. Traceback (most recent call last):
  63.  
  64. File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
  65. return _run_code(code, main_globals, None,
  66. │ │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
  67. │ └ <code object <module> at 0x7f9f9a9863a0, file "/app/app/__main__.py", line 1>
  68. └ <function _run_code at 0x7f9f9a9d1160>
  69. File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
  70. exec(code, run_globals)
  71. │ └ {'__name__': '__main__', '__doc__': None, '__package__': 'app', '__loader__': <_frozen_importlib_external.SourceFileLoader ob...
  72. └ <code object <module> at 0x7f9f9a9863a0, file "/app/app/__main__.py", line 1>
  73.  
  74. File "/app/app/__main__.py", line 32, in <module>
  75. web.run_app(app_factory(misc.app), port=config.BOT_PUBLIC_PORT)
  76. │ │ │ │ │ │ └ 80
  77. │ │ │ │ │ └ <module 'app.config' from '/app/app/config.py'>
  78. │ │ │ │ └ <Application 0x7f9f9a8734c0>
  79. │ │ │ └ <module 'app.misc' from '/app/app/misc.py'>
  80. │ │ └ <function app_factory at 0x7f9f9a937790>
  81. │ └ <function run_app at 0x7f9f9a86f160>
  82. └ <module 'aiohttp.web' from '/usr/local/lib/python3.8/site-packages/aiohttp/web.py'>
  83.  
  84. File "/usr/local/lib/python3.8/site-packages/aiohttp/web.py", line 508, in run_app
  85. loop.run_until_complete(main_task)
  86. │ │ └ <Task pending name='Task-1' coro=<_run_app() running at /usr/local/lib/python3.8/site-packages/aiohttp/web.py:429> wait_for=<...
  87. │ └ <method 'run_until_complete' of 'uvloop.loop.Loop' objects>
  88. └ <uvloop.Loop running=True closed=False debug=False>
  89. > File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 422, in _handle_request
  90. resp = await self._request_handler(request)
  91. │ │ └ <Request POST /webhook/_8xt4HRhG-8uRMYBs__loPgJtRJOxJx5LwKpce0YH2k-bZhpuxl3rH7wtcW8Yeru/1319995825:AAGWmNtxpqhg1tg2AUpQzMANif...
  92. │ └ <member '_request_handler' of 'RequestHandler' objects>
  93. └ <RequestHandler connected>
  94. File "/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py", line 499, in _handle
  95. resp = await handler(request)
  96. │ └ <Request POST /webhook/_8xt4HRhG-8uRMYBs__loPgJtRJOxJx5LwKpce0YH2k-bZhpuxl3rH7wtcW8Yeru/1319995825:AAGWmNtxpqhg1tg2AUpQzMANif...
  97. └ <class 'app.web_handlers.tg_updates.WebhookRequestHandler'>
  98. File "/usr/local/lib/python3.8/site-packages/aiohttp/web_urldispatcher.py", line 948, in _iter
  99. resp = await method()
  100. └ <bound method WebhookRequestHandler.post of <app.web_handlers.tg_updates.WebhookRequestHandler object at 0x7f9f98280490>>
  101.  
  102. File "/app/app/web_handlers/tg_updates.py", line 39, in post
  103. results = await self.process_update(update)
  104. │ │ └ <aiogram.types.update.Update object at 0x7f9f954d14c0>
  105. │ └ <function WebhookRequestHandler.process_update at 0x7f9f999b6790>
  106. └ <app.web_handlers.tg_updates.WebhookRequestHandler object at 0x7f9f98280490>
  107.  
  108. File "/app/app/web_handlers/tg_updates.py", line 85, in process_update
  109. return fut.result()
  110. │ └ <method 'result' of '_asyncio.Task' objects>
  111. └ <Task finished name='Task-27331' coro=<Handler.notify() done, defined at /usr/local/lib/python3.8/site-packages/aiogram/dispa...
  112.  
  113. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
  114. response = await handler_obj.handler(*args, **partial_data)
  115. │ │ │ └ {}
  116. │ │ └ (<aiogram.types.update.Update object at 0x7f9f954d14c0>,)
  117. │ └ <bound method Dispatcher.process_update of <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7f9f98daf490>>
  118. └ Handler.HandlerObj(handler=<bound method Dispatcher.process_update of <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7...
  119. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/dispatcher.py", line 246, in process_update
  120. return await self.message_handlers.notify(update.message)
  121. │ │ │ │ └ <aiogram.types.fields.Field object at 0x7f9f99640be0>
  122. │ │ │ └ <aiogram.types.update.Update object at 0x7f9f954d14c0>
  123. │ │ └ <function Handler.notify at 0x7f9f998345e0>
  124. │ └ <aiogram.dispatcher.handler.Handler object at 0x7f9f97e02580>
  125. └ <aiogram.dispatcher.dispatcher.Dispatcher object at 0x7f9f98daf490>
  126. File "/usr/local/lib/python3.8/site-packages/aiogram/dispatcher/handler.py", line 117, in notify
  127. response = await handler_obj.handler(*args, **partial_data)
  128. │ │ │ └ {}
  129. │ │ └ (<aiogram.types.message.Message object at 0x7f9f954d1670>,)
  130. │ └ <function cmd_start at 0x7f9f999a48b0>
  131. └ Handler.HandlerObj(handler=<function cmd_start at 0x7f9f999a48b0>, spec=FullArgSpec(args=['msg'], varargs=None, varkw=None, d...
  132.  
  133. File "/app/app/handlers/base/start_command.py", line 24, in cmd_start
  134. await issue_headcategories(msg)
  135. │ └ <aiogram.types.message.Message object at 0x7f9f954d1670>
  136. └ <function issue_headcategories at 0x7f9f999a4940>
  137.  
  138. File "/app/app/handlers/base/start_command.py", line 52, in issue_headcategories
  139. await msg.answer(text=title, reply_markup=categories_markup)
  140. │ │ │ └ <aiogram.types.inline_keyboard.InlineKeyboardMarkup object at 0x7f9f99953bb0>
  141. │ │ └ 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @NewsSports_bot! \n\nНаш бот в теме ...
  142. │ └ <function Message.answer at 0x7f9f9921c550>
  143. └ <aiogram.types.message.Message object at 0x7f9f954d1670>
  144.  
  145. File "/usr/local/lib/python3.8/site-packages/aiogram/types/message.py", line 316, in answer
  146. return await self.bot.send_message(
  147. │ └ <property object at 0x7f9f994db540>
  148. └ <aiogram.types.message.Message object at 0x7f9f954d1670>
  149. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/bot.py", line 219, in send_message
  150. result = await self.request(api.Methods.SEND_MESSAGE, payload)
  151. │ │ │ │ │ └ {'chat_id': 537574720, 'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @News...
  152. │ │ │ │ └ <aiogram.utils.helper.Item object at 0x7f9f996484f0>
  153. │ │ │ └ <class 'aiogram.bot.api.Methods'>
  154. │ │ └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  155. │ └ <function BaseBot.request at 0x7f9f9925d790>
  156. └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  157. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/base.py", line 200, in request
  158. return await api.make_request(self.session, self.__token, method, data, files,
  159. │ │ │ │ │ │ │ └ None
  160. │ │ │ │ │ │ └ {'chat_id': 537574720, 'text': 'Ищешь бота с крутыми новостями и интересными фактами о футболе и спорте? Давай к нам на @News...
  161. │ │ │ │ │ └ 'sendMessage'
  162. │ │ │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  163. │ │ │ └ <property object at 0x7f9f9982fb80>
  164. │ │ └ <aiogram.bot.bot.Bot object at 0x7f9f98db4f40>
  165. │ └ <function make_request at 0x7f9f99647d30>
  166. └ <module 'aiogram.bot.api' from '/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py'>
  167. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 104, in make_request
  168. return check_result(method, response.content_type, response.status, await response.text())
  169. │ │ │ │ │ │ │ └ <function ClientResponse.text at 0x7f9f993cb9d0>
  170. │ │ │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
  171. │ │ │ │ │ │ <CIM...
  172. │ │ │ │ │ └ 403
  173. │ │ │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
  174. │ │ │ │ <CIM...
  175. │ │ │ └ <property object at 0x7f9f99740f40>
  176. │ │ └ <ClientResponse(https://api.telegram.org/bot1319995825:AAGWmNtxpqhg1tg2AUpQzMANifnuo6K879s/sendMessage) [403 Forbidden]>
  177. │ │ <CIM...
  178. │ └ 'sendMessage'
  179. └ <function check_result at 0x7f9f99647790>
  180. File "/usr/local/lib/python3.8/site-packages/aiogram/bot/api.py", line 84, in check_result
  181. exceptions.Unauthorized.detect(description)
  182. │ │ │ └ 'Forbidden: bot was blocked by the user'
  183. │ │ └ <classmethod object at 0x7f9f992546a0>
  184. │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
  185. └ <module 'aiogram.utils.exceptions' from '/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py'>
  186. File "/usr/local/lib/python3.8/site-packages/aiogram/utils/exceptions.py", line 137, in detect
  187. raise err(cls.text or description)
  188. │ │ │ └ 'forbidden: bot was blocked by the user'
  189. │ │ └ None
  190. │ └ <class 'aiogram.utils.exceptions.Unauthorized'>
  191. └ <class 'aiogram.utils.exceptions.BotBlocked'>
  192.  
Add Comment
Please, Sign In to add comment