Advertisement
FanaticExplorer

aiogram_bot_api_error

Mar 6th, 2023
1,020
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.00 KB | Source Code | 0 0
  1. WARNING:aiogram:Goodbye!
  2. Traceback (most recent call last):
  3.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\bot\api.py", line 139, in make_request
  4.     async with session.post(url, data=req, **kwargs) as response:
  5.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiohttp\client.py", line 1141, in __aenter__        
  6.     self._resp = await self._coro
  7.                  ^^^^^^^^^^^^^^^^
  8.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiohttp\client.py", line 508, in _request
  9.     req = self._request_class(
  10.           ^^^^^^^^^^^^^^^^^^^^
  11.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiohttp\client_reqrep.py", line 305, in __init__    
  12.     self.update_host(url)
  13.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiohttp\client_reqrep.py", line 364, in update_host
  14.     raise InvalidURL(url)
  15. aiohttp.client_exceptions.InvalidURL: localhost:8081/bot1774917272:AAGdalrVx-WszPVvnRJmbQ8ykbiAigOLGGE/getMe
  16.  
  17. During handling of the above exception, another exception occurred:
  18.  
  19. Traceback (most recent call last):
  20.   File "d:\Python\VideoDownload\bot.py", line 103, in <module>
  21.     executor.start_polling(dp)
  22.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\utils\executor.py", line 45, in start_polling
  23.     executor.start_polling(
  24.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\utils\executor.py", line 320, in start_polling
  25.     loop.run_until_complete(self._startup_polling())
  26.   File "C:\Users\Andrey\AppData\Local\Programs\Python\Python311\Lib\asyncio\base_events.py", line 650, in run_until_complete
  27.     return future.result()
  28.            ^^^^^^^^^^^^^^^
  29.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\utils\executor.py", line 372, in _startup_polling
  30.     await self._welcome()
  31.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\utils\executor.py", line 361, in _welcome
  32.     user = await self.dispatcher.bot.me
  33.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  34.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\bot\bot.py", line 30, in me
  35.     setattr(self, '_me', await self.get_me())
  36.                          ^^^^^^^^^^^^^^^^^^^
  37.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\bot\bot.py", line 233, in get_me
  38.     result = await self.request(api.Methods.GET_ME, payload)
  39.              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  40.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\bot\base.py", line 236, in request
  41.     return await api.make_request(await self.get_session(), self.server, self.__token, method, data, files,
  42.            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  43.   File "D:\Python\VideoDownload\.venv\Lib\site-packages\aiogram\bot\api.py", line 142, in make_request    
  44.     raise exceptions.NetworkError(f"aiohttp client throws an error: {e.__class__.__name__}: {e}")
  45. aiogram.utils.exceptions.NetworkError: Aiohttp client throws an error: InvalidURL: localhost:8081/bot1774917272:AAGdalrVx-WszPVvnRJmbQ8ykbiAigOLGGE/getMe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement