question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot reply to EncryptionRequestPacket without profile and access token.

See original GitHub issue

Describe 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

  1. 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.
  2. Simply download GeyserMC and Floodgate into the plugins folder, there’s no need to change any configuration files.
  3. 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.
  4. 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:closed
  • Created 2 years ago
  • Comments:21 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
RealTriassiccommented, Aug 27, 2021

Can confirm that this has fixed my issue, thanks again for the quick fix!

0reactions
saguaro3commented, Sep 21, 2022

I am having this same error with paper 1.18 and the newest Geyser-spigot and floodgate-spigot

after one day of tweaking settings, I figured out that if u just turn off online mode, the error will disappear. gg

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot reply to EncryptionRequestPacket without profile and ...
When connecting to my Bungeecord server from Bedrock, it will connect... but as the world is trying to load in, I get this...
Read more >
Geysermc Cannot reply to EncryptionRequestPacket without ...
I'm Put the GEYSERMC in 1.12.2 and viaversion and ocorred this error: 15:07:31 INFO]: [Geyser-Spigot] Player connected with username ...
Read more >
I don't think geyser's working... - Help - Minehut Forums
IllegalStateException : Cannot reply to EncryptionRequestPacket without profile and access token." (Yes, I copied it down exactly.) ...
Read more >
Issues - GeyserMC Wiki
IllegalStateException : Cannot reply to EncryptionRequestPacket without profile and access token. ¶. Make sure the server has Floodgate installed and started ...
Read more >
GeyserMC not working - Plugins - Aternos Community
IllegalStateException : Cannot reply to EncryptionRequestPacket without profile and access token." My friend is using the plugin 'GeyserMC' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found