Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

async_ping is incorrectly passing arguments to TCPAsyncSocketConnection #117

Closed
py-mine-bot opened this issue Feb 15, 2022 · 0 comments
Closed
Labels
Github Import This was auto-imported from upstream repository type: bug Something isn't working

Comments

@py-mine-bot
Copy link
Collaborator

kevinkjt2000 Authored by kevinkjt2000
Mar 31, 2021
Closed Apr 11, 2021


from mcstatus import MinecraftServer
import asyncio


async def main():
    server = MinecraftServer.lookup("localhost:10301")
    await server.async_ping()


if __name__ == "__main__":
    asyncio.run(main())
Traceback (most recent call last):
  File "main.py", line 11, in <module>
    asyncio.run(main())
  File "/Users/kevin/.asdf/installs/python/3.8.7/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/Users/kevin/.asdf/installs/python/3.8.7/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "main.py", line 7, in main
    await server.async_ping()
  File "/Users/kevin/repos/temp/venv/lib/python3.8/site-packages/mcstatus/server.py", line 75, in async_ping
    connection = await TCPAsyncSocketConnection((self.host, self.port))
TypeError: __init__() takes 1 positional argument but 2 were given
@py-mine-bot py-mine-bot added type: bug Something isn't working Github Import This was auto-imported from upstream repository labels Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Github Import This was auto-imported from upstream repository type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant