Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HF_ENDPOINT is no working with slashes after the base url #2808

Closed
oriyafe opened this issue Jan 30, 2025 · 1 comment
Closed

HF_ENDPOINT is no working with slashes after the base url #2808

oriyafe opened this issue Jan 30, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@oriyafe
Copy link

oriyafe commented Jan 30, 2025

Describe the bug

I'm working with reverse proxy. the url is: /huggingfacel-public and it stopped to work after this PR:
#2721

Reproduction

  1. export HF_ENDPOINT=http://127.0.0.1:7070/huggingfacel-public
  2. run the script:
    from huggingface_hub import snapshot_download snapshot_download(repo_id="Dorshu/SDUpscalers", revision="main", force_download=True)

The client is trying to reach:
http://127.0.0.1:7070/Dorshu/SDUpscalers/resolve/87288b9ce43ffefeb9f90067f200bddfc76acb59/4x-UltraSharp.pth

instead of:
http://127.0.0.1:7070/huggingfacel-public/Dorshu/SDUpscalers/resolve/87288b9ce43ffefeb9f90067f200bddfc76acb59/4x-UltraSharp.pth

Logs

System info

- huggingface_hub version: 0.29.0.dev0
- Platform: macOS-15.0.1-arm64-arm-64bit-Mach-O
- Python version: 3.13.1
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: /Users/oriya/.cache/huggingface/token
- Has saved token ?: True
- Configured git credential helpers: osxkeychain
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.5
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 11.1.0
- hf_transfer: N/A
- gradio: 5.13.2
- tensorboard: N/A
- numpy: 2.2.2
- pydantic: 2.10.6
- aiohttp: 3.11.11
- ENDPOINT: http://127.0.0.1:7070/huggingfacel-public
- HF_HUB_CACHE: /Users/oriya/.cache/huggingface/hub
- HF_ASSETS_CACHE: /Users/oriya/.cache/huggingface/assets
- HF_TOKEN_PATH: /Users/oriya/.cache/huggingface/token
- HF_STORED_TOKENS_PATH: /Users/oriya/.cache/huggingface/stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10
@oriyafe oriyafe added the bug Something isn't working label Jan 30, 2025
@Wauplin
Copy link
Contributor

Wauplin commented Jan 30, 2025

Hi @oriyafe , thanks for reporting and sorry for the inconvenience. Bug has already been reported in #2806 and will be fixed by #2807. Once that's merged, I'll make a patch release.

@Wauplin Wauplin closed this as completed Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants