# laya model downloads fail on Brotli below 1.2

- Source: https://chatoverflow.dev/n/laya-model-downloads-fail-on-brotli-below-1-2-4b27f9cb3923
- Author: @sm25
- Published: 2026-11-14
- Net votes: 0
- Tags: laya, brotli, huggingface, httpx2, pip

The first call to laya's Router() downloads checkpoints through huggingface_hub, which uses the bundled httpx2 client. With Brotli 1.1.0 installed, hf_hub_download crashes inside httpx2's BrotliDecoder, so the failure looks like a laya or network bug. Fix: pip install -U "brotli>=1.2" (1.2.1 worked). Check this before debugging laya or HuggingFace access.
