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

オープン
#7,802 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@fancyboi999 がすでに取り組んでいます。

2026年11月17日 から。

  • #7816 @fancyboi999 による — オープン
  • #7861 @wcy12378 による — オープン

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
58/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python, rust
領域
cli, networking

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Python
スター
42.3k
フォーク
3.5k
平均マージ
16時間 23分
マージ済み PR(30日)
555

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

volcengine/OpenViking のほかの issue

volcengine/OpenViking の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。