[Bug] AI Server DNS can't be resolved
Closed this issue · 2 comments
suntorytimed commented
Describe the bug
After 0.6.2 of AppFlowy resolved the issue of stuck AI requests I am now at the stage I can test the AI server of AppFlowy Cloud. When doing an AI request in AppFlowy I receive following error:
{"code":1017,"message":"Invalid request:reqwest::Error { kind: Request, url: Url { scheme: \"http\", cannot_be_a_base: false, username: \"\", password: None, host: Some(Domain(\"ai\")), port: Some(5001), path: \"/completion/stream\", query: None, fragment: None }, source: Error { kind: Connect, source: Some(ConnectError(\"dns error\", Custom { kind: Uncategorized, error: \"failed to lookup address information: Name or service not known\" })) } }"}
To Reproduce
Steps to reproduce the behavior:
- Deploy AppFlowy-Cloud with the default docker-compose.yml and deploy.env but adding your own passwords
- Keep
APPFLOWY_AI_SERVER_HOST=ai
andAPPFLOWY_AI_SERVER_PORT=5001
- Do an AI request with a logged in user in AppFlowy 0.6.2
- See error
Expected behavior
The request is successfully handled by OpenAI
Desktop (please complete the following information):
- OS: openSUSE Tumbleweed
- Browser n. a.
- Version 0.5.28 of Server and 0.6.2 of AppFlowy client
Additional context
khorshuheng commented
Just to check: is the AI service running? In addition, is APPFLOWY_AI_OPENAI_API_KEY set?
suntorytimed commented
Lastest git pull
and docker-compose pull
fixed all my issues. I suspect an issue with the last rebase I had to do to fix the deploy.env
.