wesight icon indicating copy to clipboard operation
wesight copied to clipboard

请考虑让下载更新时试用系统当前使用的代理设置,现在卡下载

Open Bian-Sh opened this issue 3 months ago • 1 comments

如题 下载失败,提示如下错误:

Image

Bian-Sh avatar Aug 09 '26 08:08 Bian-Sh

Status update to keep this tracked: a fix is open and waiting for review, not abandoned.

PR #86 covers this issue in two parts:

  1. Routing — downloadUpdate in appUpdateInstaller.ts always used session.defaultSession.fetch(). With WeSight's "use system proxy" preference off (the default), that session runs in direct mode, so users behind a local proxy never had their download routed through it. The fix uses a dedicated persist:wesight-update-download partition session with setProxy({ mode: 'system' }), isolated from the default session.

  2. The reported symptom — routing alone did not fix "卡下载". DOWNLOAD_INACTIVITY_TIMEOUT_MS was only armed after response.body existed, so a proxy that completes the TCP handshake and then black-holes the request left session.fetch() pending forever with no timer running. The only escape was clicking cancel. PR #86 adds a response-phase timeout so the connect stage is also bounded.

CI is green on the PR. Note that this repo's stale workflow would otherwise mark this issue stale on 2026-10-08 and close it on 2026-10-22 — closing it on inactivity would not mean the bug was fixed, since the fix is still unmerged. Commenting to reset that clock.

If you can share the exact proxy setup from the screenshot (proxy tool and whether it is HTTP or SOCKS5), that would help confirm part 2 matches what you hit.

yan-6 avatar Oct 01 '26 01:10 yan-6