Datasets:

Modalities:
Image
Formats:
parquet
Languages:
English
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) and Key-Pair-Id (01KXEF4KZ1B6FV465MAWR4M21F) are identical across multiple independent attempts, spanning several days, despite the Expires timestamp and Signature changing 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_xet disabling — setting HF_HUB_DISABLE_XET=1 had no effect; the repo still routes through xet-bridge-us (likely because it's Xet-only with no LFS fallback).
    • Client version — reproduced on huggingface_hub 1.20.1 with hf_xet both installed and absent (N/A).
  • 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.

image

Sign up or log in to comment