Skip to content

Header content-range missing during Artifactory proxy download #895

Description

@vincentkelleher

System Info

When downloading a model from HuggingFace through a corporate JFrog Artifactory proxy, the download fails with Header content-range is missing and subsequent 404 errors.

Logs

  tei-1  | 2026-07-09T08:48:01.028876Z  WARN download_artifacts: text_embeddings_core::download: core/src/download.rs:50: Download failed: Header content-range is missing
  tei-1  | 2026-07-09T08:48:03.132992Z  WARN download_artifacts: text_embeddings_core::download: core/src/download.rs:65: Download failed: request error: HTTP status client error (404 Not Found) for url
(https://[REDACTED]/artifactory/api/huggingfaceml/huggingface-proxy/intfloat/multilingual-e5-small/resolve/main/config_sentence_transformers.json)
  tei-1  | Error: Could not download model artifacts
  tei-1  |
  tei-1  | Caused by:
  tei-1  |     Header content-range is missing

Environment

  • TEI version: latest (Docker image)
  • Proxy: JFrog Artifactory
  • Model: intfloat/multilingual-e5-small

Additional context

The proxy appears to not return a Content-Range header for partial content requests, which TEI expects. This causes the download to fail for 1_Pooling/config.json first, then cascades to other files with 404 errors.

Information

  • Docker
  • The CLI directly

Tasks

  • An officially supported command
  • My own modifications

Reproduction

  1. Configure TEI with huggingface_hub_cache pointing to a local cache directory
  2. Set up a JFrog Artifactory proxy for HuggingFace Hub
  3. Start TEI with a model ID that goes through the proxy
  4. Observe the download failure

Configuration (docker-compose.yaml)

version: '3.8'

services:
  tei:
    image: ghcr.io/huggingface/text-embeddings-inference:latest
    container_name: tei-1
    ports:
      - "8080:80"
    volumes:
      - ./data:/data
    environment:
      - MODEL_ID=intfloat/multilingual-e5-small
      - HF_ENDPOINT=https://[REDACTED]/artifactory/api/huggingfaceml/huggingface-proxy/
      - HF_HUB_ETAG_TIMEOUT=86400
      - HF_HUB_DOWNLOAD_TIMEOUT=86400
    restart: unless-stopped

Expected behavior

The model is downloaded without any error even if the Artifactory proxy takes time to preload the model from HuggingFace

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions