-
Notifications
You must be signed in to change notification settings - Fork 36
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
TimeoutError: timed out Bedrock Server #483
Comments
Code: server = BedrockServer.lookup("play.magicyour.tk:19132")
status = server.status()
await bot.change_presence(activity=discord.Game(name=f"{status.players_online} kişi sunucuda")) |
TimeoutError means the connection wasn't established within some specified time. The server you're pinging is likely just offline |
n-no, server online. |
is online |
Well, a timeout error indicates that the connection couldn't be established within some maximum time. Perhaps there's a firewall blocking the connection, either on your side, or the server may be blocking your IP, it's hard to say. Does this only happen sometimes, or on every attempt? Maybe try pinging that IP, see if you can even connect to that server. Also, make sure you're using the right IP and port, this might just be a typo |
The server is active if check with mcsrvstat.us. |
Duplicate of #433. Fix for that issue is not on PyPI yet, so you need to install pip install git+https://github.com/py-mine/mcstatus.git@22788ad5d17b2da5d2e04fe4f79df1cd1aa3caf4 |
|
You would have to have It should be possible to use that same commit-ref without needing git installed by using this URL instead https://github.com/py-mine/mcstatus/archive/22788ad5d17b2da5d2e04fe4f79df1cd1aa3caf4.zip Locking this conversation at this point. |
[ERROR ] discord.client: Ignoring exception in on_ready
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\discord\client.py", line 409, in _run_event
await coro(*args, **kwargs)
File "C:\Users\Administrator\Desktop\magic\bot.py", line 29, in on_ready
status = server.status()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\mcstatus\utils.py", line 66, in sync_wrapper
raise last_exc # type: ignore # (This won't actually be unbound)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\mcstatus\utils.py", line 62, in sync_wrapper
return func(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\mcstatus\server.py", line 213, in status
return BedrockServerStatus(self.address, self.timeout, **kwargs).read_status()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\mcstatus\bedrock_status.py", line 49, in read_status
data = self._read_status()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\mcstatus\bedrock_status.py", line 58, in _read_status
data, _ = s.recvfrom(2048)
TimeoutError: timed out``
The text was updated successfully, but these errors were encountered: