BeyondDimension / BeyondDimension/SteamTools

🐛[BUG] HuggingFace acceleration returns 502 Bad Gateway, local proxy receives request but upstream origin fails

Open
#4,131 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C#
Stars
26.8k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

## Checklist
- [x] I have searched existing issues, no similar issue found
- [x] I have read the documentation
- [x] I am using the latest version, problem persists
- [X] Official release, no modified binary / installation files

### 🐛 Describe the bug
When enabling acceleration for all `huggingface.*` related domains, the local proxy successfully receives HTTP/2 requests from the browser. But requests forwarded to the upstream `huggingface.co` return **502 Bad Gateway**.

The browser renders a completely blank page. CSS, JavaScript and favicon cannot be loaded. It is impossible to log in or access HuggingFace competition pages.

Troubleshooting I have performed:
- All hugging‑related domains including `cdn.huggingface.co` are selected for acceleration
- Watt Toolkit root certificate has been installed
- Multiple acceleration nodes have been tried
- Tested in browser incognito mode, ad‑block extensions disabled

Downloading models in Python with `hf‑mirror.com` works correctly. However, the mirror cannot replace the official website for account login and competition submission which require origin‑site authentication.

**Expected behavior**
The proxy forwards requests normally and the page renders completely.

**Actual behavior**
All requests to `huggingface.co` get 502 responses, browser page stays blank.

### 📷 Reproduce Steps
1. Open Watt Toolkit, navigate to Network Acceleration, search for `hugging`, select all huggingface‑related domains.
2. Click "Start Acceleration".
3. Open browser incognito tab, visit `https://huggingface.co/`, hard refresh with `Ctrl+F5`.
4. Page remains blank. Check application logs, multiple 502 responses can be observed.

### 📄 Logs
Log path: `%Tmp%\Steam++\Logs`

### 🚑 Environment
- CPU Arch: x64
- OS Version: Windows 10 Pro 19045.3570
- Download source: GitHub Releases
- Toolkit version: 3.1.0 for Windows 10 x64
- Self‑contained runtime: Yes

**Additional note**
Local HTTP/2 handshake completes successfully. The failure happens between local proxy and HuggingFace origin server. Switching acceleration nodes cannot resolve this issue stably.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in Watt Toolkit’s Network Acceleration flow and reproduce the failure with the HuggingFace domains selected. Review the logs under %Tmp%\Steam++\Logs while requesting https://huggingface.co/ and compare the local HTTP/2 handshake with the upstream 502 responses. Done means the official page, CSS, JavaScript, favicon, login, and competition pages load through acceleration.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.