Cannot reply to EncryptionRequestPacket without profile and access token.
See original GitHub issueDescribe the bug
Sometimes when I join my server, I get kicked immediately and this stacktrace is printed in my server console. I’ve noticed that this doesn’t happen every time, but I’ve not been able to find out what might cause this problem to occur.
At first I thought I simply misconfigured something, but I’ve been able to reproduce this issue on a clean Purpur server, without any configuration changes and without other plugins. And even when I was testing on said Purpur server, the issue didn’t happen every time I tried to join. I have no idea what causes this to happen, it seems very random to me.
[19:48:12 WARN]: java.lang.IllegalStateException: Cannot reply to EncryptionRequestPacket without profile and access token.
[19:48:12 WARN]: at Geyser-Spigot.jar//com.github.steveice10.mc.protocol.ClientListener.packetReceived(ClientListener.java:55)
[19:48:12 WARN]: at Geyser-Spigot.jar//com.github.steveice10.packetlib.event.session.PacketReceivedEvent.call(PacketReceivedEvent.java:51)
[19:48:12 WARN]: at Geyser-Spigot.jar//com.github.steveice10.packetlib.tcp.TcpSession.callEvent(TcpSession.java:146)
[19:48:12 WARN]: at Geyser-Spigot.jar//com.github.steveice10.packetlib.tcp.TcpSession.channelRead0(TcpSession.java:332)
[19:48:12 WARN]: at Geyser-Spigot.jar//com.github.steveice10.packetlib.tcp.TcpSession.channelRead0(TcpSession.java:36)
[19:48:12 WARN]: at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:99)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:296)
[19:48:12 WARN]: at io.netty.handler.codec.ByteToMessageCodec.channelRead(ByteToMessageCodec.java:103)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[19:48:12 WARN]: at io.netty.handler.timeout.IdleStateHandler.channelRead(IdleStateHandler.java:286)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357)
[19:48:12 WARN]: at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1410)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379)
[19:48:12 WARN]: at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365)
[19:48:12 WARN]: at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:919)
[19:48:12 WARN]: at io.netty.channel.local.LocalChannel.readInbound(LocalChannel.java:299)
[19:48:12 WARN]: at io.netty.channel.local.LocalChannel.finishPeerRead0(LocalChannel.java:445)
[19:48:12 WARN]: at io.netty.channel.local.LocalChannel.access$400(LocalChannel.java:50)
[19:48:12 WARN]: at io.netty.channel.local.LocalChannel$5.run(LocalChannel.java:403)
[19:48:12 WARN]: at io.netty.channel.DefaultEventLoop.run(DefaultEventLoop.java:54)
[19:48:12 WARN]: at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
[19:48:12 WARN]: at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
[19:48:12 WARN]: at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[19:48:12 WARN]: at java.base/java.lang.Thread.run(Thread.java:831)
To Reproduce
- Download Purpur from purpur.pl3x.net. I’m not 100% sure Purpur is actually required to reproduce this issue, though. I think it may be possible that you can reproduce the same issue on Paper or Spigot too.
- Simply download GeyserMC and Floodgate into the plugins folder, there’s no need to change any configuration files.
- Start the server and try to join from Bedrock Edition. The issue probably won’t occur every time, though. To reproduce the issue, I had to restart my server around 5 times. I couldn’t find out why it didn’t happen every time.
- If the issue does eventually occur, you’ll get kicked almost immediately with a message saying “Cannot reply to EncryptionRequestPacket without profile and access token” and the server will print a large stacktrace
Expected behaviour
I expected that I can join my Purpur server on Bedrock without this issue randomly happening. It did eventually work after I restarted my server multiple times, but after some time, the exact same thing started happening again.
Screenshots / Videos
No response
Server Version and Plugins
Purpur version git-Purpur-1343 (MC: 1.17.1) No plugins except for Geyser and Floodgate
Geyser Dump
https://dump.geysermc.org/ZQoAv99qIhYT04LCYu8NQY0CqHzbjqvD
Geyser Version
Reproduced on: 1.4.1-SNAPSHOT (git-master-26a778f) and 1.4.1-SNAPSHOT (git-master-a1d167d)
Minecraft: Bedrock Edition Version
Minecraft: Pocket Edition v1.17.11
Additional Context
I posted this issue here instead of the Floodgate repository because the stacktrace shows an exception in the Geyser-Spigot.jar
and not in Floodgate. However, the issue is possibly related to a combination of both Geyser and Floodgate.
Issue Analytics
- State:
- Created 2 years ago
- Comments:21 (9 by maintainers)
Top GitHub Comments
Can confirm that this has fixed my issue, thanks again for the quick fix!
after one day of tweaking settings, I figured out that if u just turn off online mode, the error will disappear. gg