Packet too big and huge NBT
A packet that is too large: books, maps, shulker boxes with NBT, and exploits — how to limit it and what the core fixes.
Updated August 13, 2026
io.netty.handler.codec.EncoderException: Packet too big
DecoderException: Badly compressed packet
The server tried to send a packet larger than allowed to the client (or received one).
Sources
| Source | Comment |
|---|---|
| Books with a huge amount of text | The classic crash vector — Crashers |
| Items with bloated NBT | Often the result of a dupe or a plugin |
| Maps and signs | Less common, but it happens |
| Menu plugins with hundreds of items | Sometimes they're just poorly written |
| Containers inside containers | Shulkers in shulkers with data |
Protection
Paper limits book sizes and packet rate:
book-size:
page-max: 2560
total-multiplier: 0.98
incoming-packet-spam-threshold: 300
Find the offending item
Use the error timestamp to see who was online and what they were doing. If it keeps happening with the same player, check their inventory and ender chest — Viewing inventories.
An item with anomalous data must be deleted: it will crash the client of anyone who sees it.
Related
Minecraft hostingYour server runs while you are offlineCreate server
