690 B
690 B
Fix Socket.IO Payload Limit
Issue
The user reported a 413 (Payload Too Large) error when creating a draft room with a full box of 36 packs. This was caused by the default maxHttpBufferSize limit (1MB) in Socket.IO, which is insufficient for the large JSON payload generated by 540 cards (36 packs * 15 cards) with full metadata.
Resolution
- Modified
src/server/index.tsto increasemaxHttpBufferSizeto 300MB (3e8 bytes). - This explicitly sets the limit in the
Serverinitialization options.
Verification
tsx watchshould automatically restart the server.- The new limit allows for massive payloads, covering the requirement for 36+ packs (requested >250MB).