Skip to content

内部网络使用代理(环境变量http_proxy)(fetch failed)问题 #2215

@zhangchenghgd

Description

@zhangchenghgd

企业内部网络,配置http代理环境变量,依然无法访问网络。

环境

  • 版本:Resonix 0.53.2
  • OS: Windows 10 64位专业版
  • 企业内部网络,可通过http代理环境变量访问互联网:
$env:HTTP_PROXY="xxx.xxx.xxx.xxx:7853"
$env:HTTPS_PROXY="xxx.xxx.xxx.xxx:7853"

现象

  • 在pwsh终端中使用claude code接入deepk-seek 的API可正常使用;
  • 在pwsh使用curl xxxx.com可访问网络。
  • 在pwsh终端使用resonix配置api-key无法联网,提示:
[proxy] using http://xxx.xxx.xxx.xxx:7853/ (source: env, NO_PROXY: api.deepseek.com,*.deepseek.com,localhost,127.0.0.1,::1)

key > sk-******************************
暂时无法验证 API key (fetch failed)。请检查网络后重试。
  • 尝试在~/.reasonix/config.json中配置如下,依然访问网络异常:
{
    "proxy":  { 
        "url": "http://xxx.xxx.xxx.xxx:7853/"
     } 
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions