news 2026/3/25 6:11:54

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/3/24 12:43:08

Samloader:三星设备固件免驱动下载终极方案

Samloader&#xff1a;三星设备固件免驱动下载终极方案 【免费下载链接】samloader Download Samsung firmware from official servers 项目地址: https://gitcode.com/gh_mirrors/sa/samloader 想要安全高效地下载三星设备官方固件&#xff1f;Samloader为您提供完美的…

作者头像 李华
网站建设 2026/3/16 5:00:35

GLPI系统实战指南:3大核心模块与2个高效技巧

GLPI系统实战指南&#xff1a;3大核心模块与2个高效技巧 【免费下载链接】glpi glpi-project/glpi: 是一个用于管理 IT 资产和服务的 PHP 应用程序。适合用于 IT 资产管理和服务管理。特点是提供了简单的 API&#xff0c;支持多种 IT 资产和服务管理功能&#xff0c;并且可以自…

作者头像 李华
网站建设 2026/3/22 5:48:15

Vue3大数据可视化大屏开发实战指南

Vue3大数据可视化大屏开发实战指南 【免费下载链接】IofTV-Screen-Vue3 一个基于 vue3、vite、Echart 框架的大数据可视化&#xff08;大屏展示&#xff09;模板 项目地址: https://gitcode.com/gh_mirrors/io/IofTV-Screen-Vue3 想要快速构建专业级数据展示界面&#x…

作者头像 李华
网站建设 2026/3/15 16:05:39

3步完美解锁:让三星健康在Root设备重获新生

3步完美解锁&#xff1a;让三星健康在Root设备重获新生 【免费下载链接】KnoxPatch LSPosed module to get Samsung apps/features working again in your rooted Galaxy device. 项目地址: https://gitcode.com/gh_mirrors/knox/KnoxPatch 还在为Root后三星健康闪退而困…

作者头像 李华
网站建设 2026/3/22 9:12:53

数据机房布局可视化:三大开源工具打造专业机柜图

数据机房布局可视化&#xff1a;三大开源工具打造专业机柜图 【免费下载链接】awesome-sysadmin A curated list of amazingly awesome open-source sysadmin resources. 项目地址: https://gitcode.com/GitHub_Trending/aw/awesome-sysadmin 还在为数据中心的混乱布局而…

作者头像 李华
网站建设 2026/3/15 20:00:19

ThinkPad X230黑苹果安装重构指南:个性化配置方案详解

ThinkPad X230黑苹果安装重构指南&#xff1a;个性化配置方案详解 【免费下载链接】X230-Hackintosh READMEs, OpenCore configurations, patches, and notes for the Thinkpad X230 Hackintosh 项目地址: https://gitcode.com/gh_mirrors/x2/X230-Hackintosh 想要让经典…

作者头像 李华