MassonNN / masson-aiogram-template

This is a scalable and functional template for any bots which will be made with aiogram 3.x
MIT License
115 stars 16 forks source link

Bug #16

Closed ItSoftOff closed 1 year ago

ItSoftOff commented 1 year ago

scbot-bot-1 | ERROR:aiogram.event:Cause exception while process update id=956867264 by bot id=5913357534 scbot-bot-1 | DataError: Invalid input of type: 'list'. Convert to a bytes, string, int or float first. scbot-bot-1 | Traceback (most recent call last): scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 297, in _process_update scbot-bot-1 | response = await self.feed_update(bot, update, kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 146, in feed_update scbot-bot-1 | response = await self.update.wrap_outer_middleware( scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/middlewares/error.py", line 25, in call scbot-bot-1 | return await handler(event, data) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/middlewares/user_context.py", line 23, in call scbot-bot-1 | return await handler(event, data) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/fsm/middleware.py", line 39, in call scbot-bot-1 | return await handler(event, data) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/event/telegram.py", line 123, in trigger scbot-bot-1 | return await wrapped_inner(event, kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/event/handler.py", line 42, in call scbot-bot-1 | return await wrapped() scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/dispatcher.py", line 264, in _listen_update scbot-bot-1 | return await self.propagate_event(update_type=update_type, event=event, kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 115, in propagate_event scbot-bot-1 | return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 111, in _wrapped scbot-bot-1 | return await self._propagate_event( scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 131, in _propagate_event scbot-bot-1 | response = await router.propagate_event(update_type=update_type, event=event, kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 115, in propagate_event scbot-bot-1 | return await observer.wrap_outer_middleware(_wrapped, event=event, data=kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 111, in _wrapped scbot-bot-1 | return await self._propagate_event( scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/router.py", line 124, in _propagate_event scbot-bot-1 | response = await observer.trigger(event, kwargs) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/aiogram/dispatcher/event/telegram.py", line 123, in trigger scbot-bot-1 | return await wrapped_inner(event, kwargs) scbot-bot-1 | File "/app/src/bot/middlewares/translator_md.py", line 37, in call scbot-bot-1 | if await cache.exists(locale_key): scbot-bot-1 | File "/app/src/cache/adapter.py", line 79, in exists scbot-bot-1 | return await self.client.exists( scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/client.py", line 514, in execute_command scbot-bot-1 | return await conn.retry.call_with_retry( scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/retry.py", line 59, in call_with_retry scbot-bot-1 | return await do() scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/client.py", line 487, in _send_command_parse_response scbot-bot-1 | await conn.send_command(args) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/connection.py", line 809, in send_command scbot-bot-1 | self.pack_command(args), check_health=kwargs.get("check_health", True) scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/connection.py", line 884, in pack_command scbot-bot-1 | for arg in map(self.encoder.encode, args): scbot-bot-1 | File "/opt/.cache/virtualenvs/bot-9TtSrW0h-py3.10/lib/python3.10/site-packages/redis/asyncio/connection.py", line 123, in encode scbot-bot-1 | raise DataError( scbot-bot-1 | redis.exceptions.DataError: Invalid input of type: 'list'. Convert to a bytes, string, int or float first.