Skip to content

Streaming datasets fail with 403 SignatureError: invalid key pair id from xet-bridge-us (Colab, latest libraries) #8328

Description

@mahmoud-mannes

Describe the bug

I'm unable to stream datasets from the Hugging Face Hub. The issue affects both public datasets (e.g. beans) and gated datasets (ILSVRC/imagenet-1k).

The failure occurs before any examples are yielded. The request is redirected to the Xet CDN (xet-bridge-us) and fails with:

403 Forbidden

Auth failed: SignatureError: invalid key pair id

This started around July 13–14, 2026. The same notebooks had been working previously.

Steps to reproduce the bug

from datasets import load_dataset

ds = load_dataset(
    "AI-Lab-Makerere/beans",
    split="train",
    streaming=True,
    token=True,
)

next(iter(ds))

fails immediately.

Likewise,

from datasets import load_dataset

dataset = load_dataset(
    "ILSVRC/imagenet-1k",
    split="train",
    streaming=True,
)

for i, x in enumerate(dataset):
    print(i)

fails immediately.

The request is made against https://us.gcp.cdn.hf.co/xet-bridge-us/... and returns:

403 Forbidden

Auth failed:
SignatureError: invalid key pair id

The traceback ends with:

``'
HfHubHTTPError:

403 Forbidden

Cannot access content at:
https://us.gcp.cdn.hf.co/xet-bridge-us/...

Auth failed:
SignatureError: invalid key pair id
'``

The URL also contains: Key-Pair-Id=01KXEF4KZ1B6FV465MAWR4M21F

Expected behavior

Streaming public datasets should work without returning

403 Forbidden

Auth failed:
SignatureError: invalid key pair id`
``

### Environment info

- `datasets` version: 5.0.0
- Platform: Linux-6.6.122+-x86_64-with-glibc2.35
- Python version: 3.12.13
- `huggingface_hub` version: 1.23.0
- PyArrow version: 25.0.0
- Pandas version: 2.2.2
- `fsspec` version: 2025.3.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions