Skip to content
Hosting · Error breakdowns

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

SourceComment
Books with a huge amount of textThe classic crash vector — Crashers
Items with bloated NBTOften the result of a dupe or a plugin
Maps and signsLess common, but it happens
Menu plugins with hundreds of itemsSometimes they're just poorly written
Containers inside containersShulkers 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.

Internal Exception io.netty.

Minecraft hostingYour server runs while you are offlineCreate server