-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
(Relay) Client is kicked from select realms after locating sever #426
Comments
As you can see before the exception, the server is closing the connection and no further information can be sent to the server. We should not try and send information after the connection is closed, but sometimes a race condition can happen where information is already in the send queue before the connection gets closed. As for why the server is disconnecting you, this is only possible to know from the server side. There is no clear path to fixing this problem without the server sending a kick message explaining the disconnection, or looking at the server logs, particularly as this seems to be a server/client-specific issue. |
I believe this issue is indeed related to the (Edit): |
wiki.vg is not a reliable source, but if you see in other implementations that the encoding is wrong, feel free to open a PR inside minecraft-data to fix it |
Apologies for the unreliable source, I have opened a pull request here although I am not familiar with them so further apologies if I have incorrectly opened it or have done something else incorrectly. |
Pull request #758 within minecraft-data has fixed this issue. |
This issue is apparent again, being disconnected with "Server sent broken packet". |
Different issue |
When using relay and attempting to connect to realms (I am unable to test with servers), in some cases the client is kicked from said realm with
Failed to send: -5
, this is not because the realm is full or the account in question has been banned as the same account joins without issue when using the standard bedrock-protocol. I have noticed all the realms that have kicked the client have some form of behaviour pack, although am not certain if this is the cause. The client is always kicked after the "Locating Server" tab has finished during the connection process; packets sent appear to be sent and received as normal up until the point the client is disconnected.Here is my console output:
The code I have used is sourced directly from API.md except the version has been changed the
1.20.0
, withprocess.env.DEBUG = 'minecraft-protocol'
andrelay.conLog = console.debug
being added in the appropriate places.The text was updated successfully, but these errors were encountered: