Datasets:
Tasks:
Image Classification
Modalities:
Image
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1M - 10M
ArXiv:
License:
Persistent 403 SignatureError: invalid key pair id on Xet CDN when streaming train-00000-of-00294.parquet
#42
by khalidz0 - opened
Description:
I'm consistently unable to stream ILSVRC/imagenet-1k (train split) due to a 403 Forbidden error at the Xet CDN layer. The failure is reproducible across multiple platforms, accounts, and sessions, always pointing to the same underlying storage object.
Reproduction:
from datasets import load_dataset
dataset = load_dataset("ILSVRC/imagenet-1k", split="train", streaming=True)
examples = list(dataset.skip(20).take(20))
image = examples[10]["image"]
Error:
HfHubHTTPError: (Request ID: 01KXGKBQWZ2A4WB3R3D9NXPWMR)
403 Forbidden: None.
Cannot access content at: https://us.gcp.cdn.hf.co/xet-bridge-us/627007d3becab9e2dcf15a40/f6cebf9d8e536186944f4cfb55401d21cdb0d276ddc97c289d689ea228f64c54?...&Key-Pair-Id=01KXEF4KZ1B6FV465MAWR4M21F
Auth failed: SignatureError: invalid key pair id
Notable details:
- The requested byte range (
bytes=5049124469-5049780004) andKey-Pair-Id(01KXEF4KZ1B6FV465MAWR4M21F) are identical across multiple independent attempts, spanning several days, despite theExpirestimestamp andSignaturechanging each time — suggesting the CDN edge is rejecting this specific key pair ID consistently, not a transient signing race. - I've ruled out the following as causes:
- Token validity — confirmed via
whoami()with a fresh fine-grained token (repo.content.read,canReadGatedRepos: True). - Platform — reproduced identically on Google Colab and Kaggle Notebooks.
hf_xetdisabling — settingHF_HUB_DISABLE_XET=1had no effect; the repo still routes throughxet-bridge-us(likely because it's Xet-only with no LFS fallback).- Client version — reproduced on
huggingface_hub1.20.1 withhf_xetboth installed and absent (N/A).
- Token validity — confirmed via
- The same error pattern (same
Key-Pair-Id) also occurred on an unrelated repo (bigcode/the-stack-style Xet-backed dataset) during troubleshooting, suggesting this may not be file-specific but tied to a broader signing key issue on the Xet CDN.
Environment:
- huggingface_hub version: 1.20.1
- Platform: Linux-6.6.122+-x86_64-with-glibc2.35 (Google Colab)
- Python version: 3.12.13
- hf_xet: N/A / 1.5.1 (reproduced both with and without)
- HF_HUB_DISABLE_XET: False (also tested True — no change)
Expected behavior: Successful streaming read of the parquet shard.
Actual behavior: Consistent 403 with SignatureError: invalid key pair id at the CDN edge, regardless of client-side configuration.
