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

io.netty.handler.codec.EncoderException: Sending unknown packet 'serverbound/minecraft:chat_session_update' #1373

Open
jacobjake1 opened this issue Jul 6, 2024 · 21 comments
Labels
status: awaiting response More information is required

Comments

@jacobjake1
Copy link

Expected Behavior

I'm trying to connect my Velocity server which redirects me to my prison server but keep getting kicked for this error

Actual Behavior

I get kicked for the error in the title

full error:
disconnect-2024-07-06_00.12.57-client.txt

Steps to Reproduce

I'm trying to connect to a 1.20.4 server with 1.20.1 which was working fine but as time has gone on, I've only gotten this kick error message more often...maybe It's viaverison? but im not really sure

Plugin List

Plugins: anarchyqueue, litebans, luckperms, viaversion, viabackwards, viarewind

Velocity Version

Velocity 3.3.0-SNAPSHOT (git-9d25d309-b400)

Additional Information

No response

@jacobjake1 jacobjake1 added the type: bug Something isn't working label Jul 6, 2024
@jacobjake1
Copy link
Author

I updated to 5.0.2-SNAPSHOT+452 of ViaVerison and haven't gotten the issue since

@jacobjake1
Copy link
Author

nevermind its still going on

@jacobjake1 jacobjake1 reopened this Jul 6, 2024
@Gerrygames
Copy link
Contributor

This seems to be somewhat of a vanilla client issue. The client fetches public key of the used Minecraft profile asynchronously and then sends it to the server. The key can only be updated during play state and the client does not check if it is in play state or got put into configuration state again.
However this should only really be an issue when switching servers really fast after the initial login. Might this be the case here?

@Timongcraft
Copy link
Contributor

Timongcraft commented Jul 6, 2024

Try without Via* or contact their support, as Velocity does not support protocol hacks.

@Gerrygames
Copy link
Contributor

Try without Via* or contact their support, as Velocity does not support protocol hacks.

This probably isn't caused by ViaVersion. I suspect that the player is being sent to a different server right after connecting to the initial server. This is unsupported and the PlayerChooseInitialServerEvent should be used.

@Gerrygames Gerrygames added status: awaiting response More information is required and removed type: bug Something isn't working labels Jul 6, 2024
@Timongcraft
Copy link
Contributor

Try without Via* or contact their support, as Velocity does not support protocol hacks.

This probably isn't caused by ViaVersion. I suspect that the player is being sent to a different server right after connecting to the initial server. This is unsupported and the PlayerChooseInitialServerEvent should be used.

Oh, yeah, sorry. I didn't really look at the issue but rather at the fact that they were talking a lot about ViaVersion.

@jacobjake1
Copy link
Author

However this should only really be an issue when switching servers really fast after the initial login. Might this be the case here?

It occurs almost always now for some reason, it could be my first connection of the day to the server and I will still get the error, I'll see if it's maybe my queue plugin and use PlayerChooseInitialServerEvent instead

@jacobjake1
Copy link
Author

jacobjake1 commented Jul 7, 2024

Though, a weird thing is, it only occurs on 1.21. No issues on 1.20.6 and below (server native is 1.20.4 paper)

@jacobjake1
Copy link
Author

I ended up doing public void onPlayerChooseInitialServer(PlayerChooseInitialServerEvent event) { Player player = event.getPlayer(); Optional<RegisteredServer> server = proxyServer.getServer(Config.serverQueue); server.ifPresent(event::setInitialServer); } but I still get the error, so I don't think it's the queue plugin

@wordandahalf
Copy link

This seems to be somewhat of a vanilla client issue. The client fetches public key of the used Minecraft profile asynchronously and then sends it to the server. The key can only be updated during play state and the client does not check if it is in play state or got put into configuration state again. However this should only really be an issue when switching servers really fast after the initial login. Might this be the case here?

I agree with your interpretation--we've encountered this issue, but luckily we can work around it.

@jacobjake1
Copy link
Author

jacobjake1 commented Jul 7, 2024 via email

@lemonlambda
Copy link

I am experiencing this but only while I'm op'ed.

@Gerrygames
Copy link
Contributor

This will apparently be fixed in a future version of Minecraft: https://bugs.mojang.com/browse/MC-272506

@jacobjake1
Copy link
Author

jacobjake1 commented Jul 10, 2024 via email

@electronicboy
Copy link
Member

The only real fix we could do for velocity would be to prevent server switching until we get that packet

@jacobjake1
Copy link
Author

jacobjake1 commented Jul 10, 2024 via email

@jacobjake1
Copy link
Author

Adding a 3 second delay before transferring the player to the main server fixed the issue. Need to make sure they are actually fully connected to the hub main server before you transition them with the delay.

@saifsuleman
Copy link

The only real fix we could do for velocity would be to prevent server switching until we get that packet

Do you know specifically what packet this is? I'm thinking of deferring my redirects until I receive it as I'm experiencing this issue

@electronicboy
Copy link
Member

The mojang name of the packet is in the error, don't recall off the top of my head what we call that packet

@Little100
Copy link

Adding a 3 second delay before transferring the player to the main server fixed the issue. Need to make sure they are actually fully connected to the hub main server before you transition them with the delay.在将玩家转移到主服务器之前添加 3 秒的延迟修复了该问题。在延迟转换它们之前,需要确保它们实际上完全连接到中心主服务器。

May I ask how you did it specifically? I'm not very familiar with Velocity. Can you tell me? I've also encountered this problem

@jacobjake1
Copy link
Author

jacobjake1 commented Aug 27, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting response More information is required
Projects
None yet
Development

No branches or pull requests

8 participants