news 2026/9/9 21:08:17

text-generation-webui启动报错alueError: Unknown scheme for proxy URL URL(‘socks://127.0.0.1:**/‘)

作者头像

张小明

前端开发工程师

1.2k 24
文章封面图
text-generation-webui启动报错alueError: Unknown scheme for proxy URL URL(‘socks://127.0.0.1:**/‘)

启动报错如下所示:

(base) runUser@**:~/soft/text-generation-webui-main$ ./start_linux.sh ╭───────────────────── Traceback (most recent call last) ──────────────────────╮ │ /home/runUser/soft/text-generation-webui-main/server.py:6 in <module> │ │ │ │ 5 │ │ ❱ 6 from modules import shared │ │ 7 from modules.block_requests import OpenMonkeyPatch, RequestBlocker │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/shared.py:12 in │ │ <module> │ │ │ │ 11 from modules.logging_colors import logger │ │ ❱ 12 from modules.presets import default_preset │ │ 13 │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/presets.py:8 in │ │ <module> │ │ │ │ 7 from modules import shared │ │ ❱ 8 from modules.loaders import loaders_samplers │ │ 9 from modules.logging_colors import logger │ │ │ │ /home/runUser/soft/text-generation-webui-main/modules/loaders.py:4 in │ │ <module> │ │ │ │ 3 │ │ ❱ 4 import gradio as gr │ │ 5 │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/gradio/__init__.py:3 in <module> │ │ │ │ 2 │ │ ❱ 3 import gradio._simple_templates │ │ 4 import gradio.image_utils │ │ │ │ ... 4 frames hidden ... │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/gradio/processing_utils.py:99 in <module> │ │ │ │ 98 │ │ ❱ 99 sync_client = httpx.Client(transport=sync_transport) │ │ 100 async_client = httpx.AsyncClient(transport=async_transport) │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:686 in __init__ │ │ │ │ 685 allow_env_proxies = trust_env and transport is None │ │ ❱ 686 proxy_map = self._get_proxy_map(proxy, allow_env_proxies) │ │ 687 │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:244 in _get_proxy_map │ │ │ │ 243 if allow_env_proxies: │ │ ❱ 244 return { │ │ 245 key: None if url is None else Proxy(url=url) │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_client.py:245 in <dictcomp> │ │ │ │ 244 return { │ │ ❱ 245 key: None if url is None else Proxy(url=url) │ │ 246 for key, url in get_environment_proxies().items() │ │ │ │ /home/runUser/soft/text-generation-webui-main/installer_files/env/lib/python3 │ │ .11/site-packages/httpx/_config.py:214 in __init__ │ │ │ │ 213 if url.scheme not in ("http", "https", "socks5", "socks5h"): │ │ ❱ 214 raise ValueError(f"Unknown scheme for proxy URL {url!r}") │ │ 215 │ ╰──────────────────────────────────────────────────────────────────────────────╯ ValueError: Unknown scheme for proxy URL URL('socks://127.0.0.1:10808/')

使用env | grep -i proxy命令查看代理配置

(base) runUser@**:~/soft/text-generation-webui-main$ env | grep -i proxy no_proxy=localhost,127.0.0.0/8,::1 ftp_proxy=http://127.0.0.1:10808/ https_proxy=http://127.0.0.1:10808/ NO_PROXY=localhost,127.0.0.0/8,::1 FTP_PROXY=http://127.0.0.1:10808/ HTTPS_PROXY=http://127.0.0.1:10808/ HTTP_PROXY=http://127.0.0.1:10808/ http_proxy=http://127.0.0.1:10808/ ALL_PROXY=socks://127.0.0.1:10808/ all_proxy=socks://127.0.0.1:10808/

使用unset命令清空代理配置,我的经验,只需要清空ALL_PROXY、all_proxy即可

(base) runUser@**:~/soft/text-generation-webui-main$ unset ALL_PROXY (base) runUser@**:~/soft/text-generation-webui-main$ unset all_proxy (base) runUser@**:~/soft/text-generation-webui-main$ env | grep -i proxy no_proxy=localhost,127.0.0.0/8,::1 ftp_proxy=http://127.0.0.1:10808/ https_proxy=http://127.0.0.1:10808/ NO_PROXY=localhost,127.0.0.0/8,::1 FTP_PROXY=http://127.0.0.1:10808/ HTTPS_PROXY=http://127.0.0.1:10808/ HTTP_PROXY=http://127.0.0.1:10808/ http_proxy=http://127.0.0.1:10808/

启动就没有问题了

版权声明: 本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若内容造成侵权/违法违规/事实不符,请联系邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!
网站建设 2026/9/9 14:13:45

星际工厂蓝图宝典:3步打造高效生产线

星际工厂蓝图宝典&#xff1a;3步打造高效生产线 【免费下载链接】FactoryBluePrints 游戏戴森球计划的**工厂**蓝图仓库 项目地址: https://gitcode.com/GitHub_Trending/fa/FactoryBluePrints FactoryBluePrints项目为《戴森球计划》玩家提供了完整的工厂设计解决方案…

作者头像 李华
网站建设 2026/9/9 18:53:31

Habitat-Sim物理引擎完全指南:如何快速掌握Bullet仿真核心技术

Habitat-Sim物理引擎完全指南&#xff1a;如何快速掌握Bullet仿真核心技术 【免费下载链接】habitat-sim A flexible, high-performance 3D simulator for Embodied AI research. 项目地址: https://gitcode.com/GitHub_Trending/ha/habitat-sim Habitat-Sim作为Meta AI…

作者头像 李华
网站建设 2026/9/9 15:58:05

企业级实时数仓构建:从理论到实战的完整指南

企业级实时数仓构建&#xff1a;从理论到实战的完整指南 【免费下载链接】data-warehouse-learning 【2024最新版】 大数据 数据分析 电商系统 实时数仓 离线数仓 建设方案及实战代码&#xff0c;涉及组件 flink、paimon、doris、seatunnel、dolphinscheduler、datart、dinky、…

作者头像 李华
网站建设 2026/9/4 4:27:54

如何快速部署驭龙HIDS:面向新手的完整安全防护指南

如何快速部署驭龙HIDS&#xff1a;面向新手的完整安全防护指南 【免费下载链接】yulong-hids-archived [archived] 一款实验性质的主机入侵检测系统 项目地址: https://gitcode.com/gh_mirrors/yu/yulong-hids-archived 随着网络安全威胁日益复杂&#xff0c;企业需要更…

作者头像 李华
网站建设 2026/9/2 23:57:04

Obsidian Web Clipper终极指南:如何快速建立个人知识收集系统

Obsidian Web Clipper终极指南&#xff1a;如何快速建立个人知识收集系统 【免费下载链接】obsidian-clipper Highlight and capture the web in your favorite browser. The official Web Clipper extension for Obsidian. 项目地址: https://gitcode.com/gh_mirrors/obsidi…

作者头像 李华
网站建设 2026/9/7 23:45:25

告别模糊视频:3步掌握ComfyUI超分辨率神器SeedVR2

告别模糊视频&#xff1a;3步掌握ComfyUI超分辨率神器SeedVR2 【免费下载链接】ComfyUI-SeedVR2_VideoUpscaler Non-Official SeedVR2 Vudeo Upscaler for ComfyUI 项目地址: https://gitcode.com/gh_mirrors/co/ComfyUI-SeedVR2_VideoUpscaler 还在为手机拍摄的模糊视频…

作者头像 李华