[2024-04-17 15:38:05 +0530] [14044] [ERROR] Exception occurred while handling uri: 'http://9ed8-122-175-3-153.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
File "handle_request", line 83, in handle_request
)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\rasa\core\channels\telegram.py", line 223, in message
credentials = await out_channel.get_me()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\bot.py", line 215, in get_me
result = await self.request(api.Methods.GET_ME, payload)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\base.py", line 208, in request
return await api.make_request(self.session, self.server, self.__token, method, data, files,
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\api.py", line 139, in make_request
async with session.post(url, data=req, **kwargs) as response:
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 1194, in __aenter__
self._resp = await self._coro
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 476, in _request
handle = tm.start()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\helpers.py", line 660, in start
return self._loop.call_at(when, self.__call__)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 698, in call_at
self._check_closed()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[2024-04-17 15:39:08 +0530] [14044] [ERROR] Exception occurred while handling uri: 'http://9ed8-122-175-3-153.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
File "handle_request", line 83, in handle_request
)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\rasa\core\channels\telegram.py", line 223, in message
credentials = await out_channel.get_me()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\bot.py", line 215, in get_me
result = await self.request(api.Methods.GET_ME, payload)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\base.py", line 208, in request
return await api.make_request(self.session, self.server, self.__token, method, data, files,
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\api.py", line 139, in make_request
async with session.post(url, data=req, **kwargs) as response:
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 1194, in __aenter__
self._resp = await self._coro
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 476, in _request
handle = tm.start()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\helpers.py", line 660, in start
return self._loop.call_at(when, self.__call__)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 698, in call_at
self._check_closed()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
[2024-04-17 15:40:40 +0530] [14044] [ERROR] Exception occurred while handling uri: 'http://9ed8-122-175-3-153.ngrok-free.app/webhooks/telegram/webhook'
Traceback (most recent call last):
File "handle_request", line 83, in handle_request
)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\rasa\core\channels\telegram.py", line 223, in message
credentials = await out_channel.get_me()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\bot.py", line 215, in get_me
result = await self.request(api.Methods.GET_ME, payload)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\base.py", line 208, in request
return await api.make_request(self.session, self.server, self.__token, method, data, files,
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiogram\bot\api.py", line 139, in make_request
async with session.post(url, data=req, **kwargs) as response:
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 1194, in __aenter__
self._resp = await self._coro
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\client.py", line 476, in _request
handle = tm.start()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\site-packages\aiohttp\helpers.py", line 660, in start
return self._loop.call_at(when, self.__call__)
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 698, in call_at
self._check_closed()
File "c:\users\vishwateja\appdata\local\programs\python\python38\lib\asyncio\base_events.py", line 508, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
1 Like
I have the same issue. Did you find any solution?
Well this error can occur due to various reasons such as improper handling of asynchronous tasks or closing the event loop prematurely.
To resolve this you make sure that all asynchronous tasks are properly awaited and handled and check for any code that might be closing the event loop unexpectedly. And consider debugging your application to identify the specific cause of the event loop closure and address it accordingly.