You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the function execute in the Class ServerManager currently includes the line self.process.stdin.write(f"{command}\n"), which seems to trigger an exception with the following message:
[Server] Exception: a bytes-like object is required, not 'str'
Could you please confirm whether this is intentional or if it’s a bug?
Thank you for your reply, and I want to acknowledge the excellent work you’re doing!
The text was updated successfully, but these errors were encountered:
It's a bug. This function works properly on Windows 11 and Ubuntu 22.04 LTS. Maybe it's because some character encoding issues related to the platform (such as those related to Java Minecraft Server)
Could you provide more detailed information?
Thank you for your attention! We are glad that someone is interested in our project
I am running this on Ubuntu 22.04 with WSL, and my Python version is 3.11.10.
I’ve noticed that when the code enters except Exception as e:, it seems that no message is displayed in the console. As a result, even if self.process.stdin.write(f"{command}\n") triggers an exception, the person running the program might not notice it (although I’m not entirely sure what specific impact this bug might have). Perhaps adding a warning would be helpful.
Hello,
I noticed that the function
execute
in theClass ServerManager
currently includes the lineself.process.stdin.write(f"{command}\n")
, which seems to trigger an exception with the following message:Could you please confirm whether this is intentional or if it’s a bug?
Thank you for your reply, and I want to acknowledge the excellent work you’re doing!
The text was updated successfully, but these errors were encountered: