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

error :Failed to send message. Server closed the connection unexpectedly. #9

Closed
101536363 opened this issue Mar 1, 2023 · 9 comments
Labels
bug Something isn't working

Comments

@101536363
Copy link

image
image
According to your instructions, I added the api-key and successfully accessed the page, but when I asked a question, I was able to reply to the answer and an error message would also appear. Is this normal? I'm building with docker-compose from the latest branch on your git, thanks

@WongSaang
Copy link
Owner

Hello, this is a bug. I have fixed it in the new version. Please pull the latest image again.

@WongSaang WongSaang added the bug Something isn't working label Mar 1, 2023
@101536363
Copy link
Author

ok Thanks

@101536363
Copy link
Author

101536363 commented Mar 1, 2023

image

Hello, I used your docker-compose under Run services on github to start, but when I entered the account admin password password, Request failed, please try again.

docker-compose.yml

version: '3'
services:
client:
image: wongsaang/chatgpt-ui-client:latest
environment:
- SERVER_DOMAIN=http://backend-web-server
depends_on:
- backend-web-server
ports:
- '80:80'
networks:
- chatgpt_ui_network
backend-asgi-server:
image: wongsaang/chatgpt-ui-asgi-server:latest
environment:
- APP_DOMAIN=locahlost:9000 # The URL of the api server
# - DB_URL=postgres://postgres:postgrespw@localhost:49153/chatgpt # If this parameter is not set, the built-in Sqlite will be used by default. It should be noted that if you do not connect to an external database, the data will be lost after the container is destroyed.
- DJANGO_SUPERUSER_USERNAME=admin # default superuser name
- DJANGO_SUPERUSER_PASSWORD=password # default superuser password
- DJANGO_SUPERUSER_EMAIL=admin@example.com # default superuser email
ports:
- '8000:8000'
networks:
- chatgpt_ui_network
backend-web-server:
image: wongsaang/chatgpt-ui-web-server:latest
environment:
- BACKEND_URL=http://backend-asgi-server:8000
ports:
- '9000:80'
depends_on:
- backend-asgi-server
networks:
- chatgpt_ui_network

networks:
chatgpt_ui_network:
driver: bridge

@101536363
Copy link
Author

Trying to log in to http://localhost:9000/admin will return a page not found

@WongSaang
Copy link
Owner

Thank you very much for your feedback! ❤️

This was an image build error caused by forgetting to remove comments in the Dockerfile. I have updated the image and also the docker-compose configuration example in the Readme file.

You can copy the docker-compose configuration again and pull the latest image by running the command docker-compose up --pull always.

手忙脚乱,老兄海涵

@101536363
Copy link
Author

ok 3Q 哈哈哈

@duanyunlun
Copy link

请问这个bug解决了吗?我添加了API-Key依然是返回这个报错

@WongSaang
Copy link
Owner

WongSaang commented Mar 23, 2023 via email

@WongSaang
Copy link
Owner

WongSaang commented Mar 23, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants