[Bug]: 环境存在 socks5 代理(ALL_PROXY)时 ov 命令报 unsupported scheme socks5,且配置向导隐藏真实错误

Aperta
#7,802 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@fancyboi999 ci sta già lavorando.

Dal 17/11/2026.

  • #7816 di @fancyboi999 — aperta
  • #7861 di @wcy12378 — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
58/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
python, rust
Ambito
cli, networking

Direzione di ricerca

Start by tracing how the Rust CLI builds its HTTP client and reads ALL_PROXY and NO_PROXY, then follow the ov config add validation path that turns connection failures into user-facing errors. Reproduce with ALL_PROXY=socks5://127.0.0.1:10808 against a reachable server. Done when supported proxy handling or the documented fallback works and the config flow exposes the actionable error.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug
Issue Origin

Observed or reproduced in a real environment

Bug Description

而同一台机器上浏览器、curl访问同一个服务端均正常,但使用 ov config 添加配置时报错 「无法连接服务器。请检查 URL 和网络连接。」

Steps to Reproduce
  1. 准备 socks5 代理环境:

    export ALL_PROXY=socks5://127.0.0.1:10808
    
  2. 服务端可直连,自部署地址为 http://private-server:1933,用 curl 验证正常:

    curl -s http://private-server:1933/health
    # {"status":"ok","healthy":true,"version":"v0.5.5","auth_mode":"api_key"}
    
  3. 用 CLI 写入配置:

    printf '%s' "$KEY" | ov config add custom --name home \
      --url http://private-server:1933 --api-key-stdin --activate
    
  4. 执行健康检查:

    ov health
    
Expected Behavior
  1. 正常通过 socks5 代理访问服务端;
  2. 遇到不支持的代理 scheme 时,忽略该代理(回退直连)并给出警告,而不是让所有请求失败;
  3. 至少把真实错误(unsupported scheme socks5)透出到 ov config / 向导界面上,并提示检查 ALL_PROXY / NO_PROXY。
Actual Behavior

ov health(含详情):

OPENVIKING 健康检查

╭─ 连接错误 ───────────────────────────────────────────────────────────╮
│ 无法连接 OpenViking。请先查看详情,再确认服务器是否运行、URL         │
│ 是否正确。 详情:HTTP request failed: error sending request for url  │
│ (http://private-server:1933/health): client error (Connect):            │
│ unsupported scheme socks5                                            │
╰──────────────────────────────────────────────────────────────────────╯

ov config add custom / 配置向导(向导界面上只剩一句通用文案):

Error [validation_failed] Could not reach the custom server. HTTP request failed:
error sending request for url (http://private-server:1933/health):
client error (Connect): unsupported scheme socks5
Minimal Reproducible Example

Error Logs

OpenViking Version

0.5.5

Python Version

Rust CLI

Operating System

macOS

Model Backend

OpenAI

Additional Context

No response

Lingua principale
Python
Stelle
42.3k
Fork
3.5k
Merge medio
16h 23m
PR unite (30g)
555

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di volcengine/OpenViking

Tutte le issue di volcengine/OpenViking

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.