Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] 连接错误Connection errored out #127

Closed
han04 opened this issue Mar 11, 2023 · 8 comments
Closed

[docker] 连接错误Connection errored out #127

han04 opened this issue Mar 11, 2023 · 8 comments
Labels
docker deployment question Further information is requested

Comments

@han04
Copy link

han04 commented Mar 11, 2023

错误描述

网页打开后粘贴上api运行显示错误

复现操作

你之前干了什么,然后出现了错误呢?
下次记得把例子删干净

clone、安装依赖都成功,添加了公网连接用户名和密码,网页打开后粘贴上api 运行显示错误

错误截图

image

运行环境

桌面系统

请填写以下列表:

  • VPS OS: [Debian11]
  • 本机Browser: [Chrome]

运行依赖

请填写以下列表:
你可以在终端中依次输入以下指令以查看软件版本:

pip show gradio
python --version
  • Gradio version:3.20.1
  • Python (或Python3) version: Python 3.9.2
@Keldos-Li Keldos-Li added question Further information is requested localhost deployment labels Mar 11, 2023
@GaiZhenbiao
Copy link
Owner

请提供终端打印的报错信息

@han04
Copy link
Author

han04 commented Mar 12, 2023

终端没有报错

root@racknerd-67b462:/opt/ChuanhuChatGPT# python3 ChuanhuChatbot.py
Loading template...
Loading template...
Loading template...
川虎的温馨提示:访问 http://localhost:7860 查看界面
Running on local URL:  http://0.0.0.0:7860

To create a public link, set `share=True` in `launch()`.

@JuWuhe
Copy link

JuWuhe commented Mar 12, 2023

同问此问题,不过我是部署在云服务器上的。使用Clash做代理或者URL反代都会出现此问题,终端没有任何报错

@JuWuhe
Copy link

JuWuhe commented Mar 12, 2023

补充一下截图,curl是能通的,其中打码的部分是反代链接和APIKEY
image

@JuWuhe
Copy link

JuWuhe commented Mar 13, 2023

解决了,取消掉用户名和密码的设置,直接demo.launch就好了,不知道为什么

@hnuzhoulin
Copy link

index.42794ed1.js:4 WebSocket connection to 'ws://192.168.XXX.X1:7860/queue/join' failed:

我也是这个错,估计是ws没有匹配用户名密码功能

@magehsiii
Copy link

index.42794ed1.js:4 WebSocket connection to 'ws://192.168.XXX.X1:7860/queue/join' failed:

我也是这个错,估计是ws没有匹配用户名密码功能
可以参考这个
#89

@han04
Copy link
Author

han04 commented Mar 14, 2023

@magehsiii 谢谢!

@han04 han04 closed this as completed Mar 14, 2023
@Keldos-Li Keldos-Li changed the title [本地部署] 连接错误 [docker] 连接错误Connection errored out Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker deployment question Further information is requested
Projects
None yet
Development

No branches or pull requests

6 participants