news 2026/4/23 10:43: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/4/19 0:11:42

3步搞定AWS iOS SDK:新手也能快速上手的终极指南

3步搞定AWS iOS SDK&#xff1a;新手也能快速上手的终极指南 【免费下载链接】aws-sdk-ios 项目地址: https://gitcode.com/gh_mirrors/aw/aws-sdk-ios AWS SDK for iOS是亚马逊云服务提供的一款强大工具包&#xff0c;它让iOS开发者能够轻松地在应用中集成各种AWS云服…

作者头像 李华
网站建设 2026/4/22 16:48:57

Vue.js前端框架技术学习心得

文章标签&#xff1a;#前端框架#vue.js#前端从入门到进阶&#xff1a;Vue.js 学习之旅 —— 解锁前端工程化与组件化核心在完成 Vue.js 前端框架技术课程的学习后&#xff0c;我不仅吃透了 Vue 核心语法与工程化开发思路&#xff0c;更对前端组件化开发有了颠覆性的认知。从最初…

作者头像 李华
网站建设 2026/4/16 20:14:48

如何快速解决GoodbyeDPI启动失败:WinDivert驱动问题完整指南

如何快速解决GoodbyeDPI启动失败&#xff1a;WinDivert驱动问题完整指南 【免费下载链接】GoodbyeDPI GoodbyeDPI — Deep Packet Inspection circumvention utility (for Windows) 项目地址: https://gitcode.com/GitHub_Trending/go/GoodbyeDPI 当您满怀期待地双击Goo…

作者头像 李华
网站建设 2026/4/10 21:10:29

Open vSwitch 终极实战指南:快速构建企业级虚拟网络

Open vSwitch 终极实战指南&#xff1a;快速构建企业级虚拟网络 【免费下载链接】ovs Open vSwitch 项目地址: https://gitcode.com/gh_mirrors/ov/ovs Open vSwitch作为业界领先的开源虚拟交换机解决方案&#xff0c;正在彻底改变现代网络架构的设计理念。这个强大的工…

作者头像 李华
网站建设 2026/4/18 12:42:45

如何快速搭建离线办公环境:ONLYOFFICE完整使用指南

如何快速搭建离线办公环境&#xff1a;ONLYOFFICE完整使用指南 【免费下载链接】DesktopEditors An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents 项目地址: https://gitcode.com/gh_mirrors/…

作者头像 李华
网站建设 2026/4/21 7:05:16

响应式HTML邮件签名:5分钟打造专业商务形象

响应式HTML邮件签名&#xff1a;5分钟打造专业商务形象 【免费下载链接】responsive-html-email-signature ✨ Template generator for (responsive) emails & email signatures 项目地址: https://gitcode.com/gh_mirrors/re/responsive-html-email-signature 还在…

作者头像 李华