GithubHelp home page GithubHelp logo

Comments (25)

WongSaang avatar WongSaang commented on July 25, 2024 1

image
你的网还是请求不到 api.openai.com, 实在需要用,还是建议这个方式:#13 (comment)

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

重点要感谢你的分享,谢谢了。

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

🧱墙内已经无法请求API啦~
最好能部署在墙外

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

收到, 谢谢了,如果只是这个原因, 我就好解决了。

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

是否我在部署的服务器上再部署VPN 科学上网,就能解决问题了?

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

Failed to send message. HTTP 200 - OK ,
重新部署VPN 后,报错变成这个了。。。

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

写了一个 shell 脚本,可以直接部署到 vps 上,看 Readme

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

谢谢你的回复,我刚才做了全局VPN调试,同时看了docker日志,重新部署后,API已经没有报错了。但是输入文字后,立刻出现截图的报错,之前所有报错都要等,这个报错是秒出。
1120230304235026

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

好的, 我重新按您新的脚本部署测试一下,谢谢。

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

管理面板能访问吗?需要登录管理面板设置一个api key

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

再次谢谢你,一切都正常,API ,管理界面,连接openAI网站,设置,我都搞定了,但是还是报Failed to send message. HTTP 500 - Internal Server Error,我认为唯一和您不同的地方, 就是我是用Centos7.9 2009 部署的。其他我想不出有什么问题,你这边可以远程帮我看看吗?
image
image

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

给我留个邮箱

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

[email protected]
现在报错又变成了秒出的 Failed to send message. HTTP 400 - Bad Request 。

[root@localhost chatgpt-ui]# curl -I https://api.openai.com
HTTP/1.1 200 Connection established

curl: (35) TCP connection reset by peer
这个连接是正常的吗?如果确实是被拒绝,我再修改。

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

之前的日志,看到有api.openai.com的报错 ,但是现在日志没看到有报错
chatgpt-ui-backend-wsgi-server-1 | 2023-03-05T03:44:29.863044569Z 172.18.0.3 - - [05/Mar/2023:03:44:29 +0000] "POST /api/conversation/ HTTP/1.0" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
chatgpt-ui-client-1 | 2023-03-05T03:44:29.863133707Z 192.168.1.62 - - [05/Mar/2023:03:44:29 +0000] "POST /api/conversation/ HTTP/1.1" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "-"
chatgpt-ui-backend-web-server-1 | 2023-03-05T03:44:29.863042871Z 172.18.0.4 - - [05/Mar/2023:03:44:29 +0000] "POST /api/conversation/ HTTP/1.0" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "192.168.1.62"
chatgpt-ui-backend-wsgi-server-1 | 2023-03-05T03:45:30.618874615Z 172.18.0.3 - - [05/Mar/2023:03:45:30 +0000] "POST /api/conversation/ HTTP/1.0" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36"
chatgpt-ui-backend-web-server-1 | 2023-03-05T03:45:30.618982023Z 172.18.0.4 - - [05/Mar/2023:03:45:30 +0000] "POST /api/conversation/ HTTP/1.0" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "192.168.1.62"
chatgpt-ui-client-1 | 2023-03-05T03:45:30.618988258Z 192.168.1.62 - - [05/Mar/2023:03:45:30 +0000] "POST /api/conversation/ HTTP/1.1" 400 53 "http://192.168.1.67/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" "-"

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

你好,可能使用代理还是连接不上 openai 哦,这是正常的情况:
image

你可以看看这个方案去配置一个代理,noobnooc/noobnooc#9,
然后在 backend-wsgi-server 这个容器中增加一个环境变量 OPENAI_API_PROXY=http://proxy 来使用代理

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

测试已经连上了。
image
但是仍然报400错误,而且我输入的消息,在9000的管理后台看不到。感觉直接被程序拒绝没有输出到chatGPT.之前虽然报500错误,但是可以在管理页面的message看到我曾经发的消息。
image
image

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

image

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

这个改成小写看看
image

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

晕死, 改了小写,重启docker compose up -d,看到信息了。
image
但是又开始报502 错误 和 500 错误。

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

又一个重要因素会不会影响,本机有双网卡,内网和外网,外网有网关和DNS,需要对docker网络做什么设置吗?
image
image

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

看看 docker compose 的请求日志,对症下药

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

日志.txt

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

你可以远程向日葵看看也行.

from chatgpt-ui.

WongSaang avatar WongSaang commented on July 25, 2024

怎么样?解决了吗?如果没有别的问题,我就把这个 Issue 关闭😀

from chatgpt-ui.

OYLFLMH avatar OYLFLMH commented on July 25, 2024

from chatgpt-ui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.