Skip to content

"TypeError: shield() got an unexpected keyword argument 'loop'" after entering command character #2

@Aussiemon

Description

@Aussiemon
C:\Python\Python310-64\lib\site-packages\aiohttp\connector.py:964: RuntimeWarning: coroutine 'TCPConnector._resolve_host' was never awaited
  hosts = await asyncio.shield(self._resolve_host(
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Thanks for using GithubCodeBot!
If you'd like to reset your bot token or command character, simply delete bot_token.txt or cmd_char.txt and reset the program.

Github repo: https://github.com/SeanJxie/GithubCodeBot

Connecting...

Traceback (most recent call last):
  File "C:\Users\<Username>\Documents\GitHub\GithubCodeBot\src\github_code_bot.py", line 251, in <module>
    main()
  File "C:\Users\<Username>\Documents\GitHub\GithubCodeBot\src\github_code_bot.py", line 245, in main
    ghc_bot.run(TOKEN)
  File "C:\Python\Python310-64\lib\site-packages\discord\client.py", line 678, in run
    return future.result()
  File "C:\Python\Python310-64\lib\site-packages\discord\client.py", line 658, in runner
    await self.start(*args, **kwargs)
  File "C:\Python\Python310-64\lib\site-packages\discord\client.py", line 621, in start
    await self.login(*args, bot=bot)
  File "C:\Python\Python310-64\lib\site-packages\discord\client.py", line 472, in login
    await self.http.static_login(token.strip(), bot=bot)
  File "C:\Python\Python310-64\lib\site-packages\discord\http.py", line 288, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "C:\Python\Python310-64\lib\site-packages\discord\http.py", line 185, in request
    async with self.__session.request(method, url, **kwargs) as r:
  File "C:\Python\Python310-64\lib\site-packages\aiohttp\client.py", line 1012, in __aenter__
    self._resp = await self._coro
  File "C:\Python\Python310-64\lib\site-packages\aiohttp\client.py", line 480, in _request
    conn = await self._connector.connect(
  File "C:\Python\Python310-64\lib\site-packages\aiohttp\connector.py", line 523, in connect
    proto = await self._create_connection(req, traces, timeout)
  File "C:\Python\Python310-64\lib\site-packages\aiohttp\connector.py", line 858, in _create_connection
    _, proto = await self._create_direct_connection(
  File "C:\Python\Python310-64\lib\site-packages\aiohttp\connector.py", line 964, in _create_direct_connection
    hosts = await asyncio.shield(self._resolve_host(
TypeError: shield() got an unexpected keyword argument 'loop'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions