-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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
[Bug] OpenAI is not accessible #3822
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey there, @unitythemaker! I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this issue together! I found some similar issues that might be relevant to your problem:
Regarding your specific issue, the
By following these steps, you should be able to identify and resolve the DNS resolution issue affecting your LobeChat's connectivity to the OpenAI API. |
@hezhijie0327 is this same as before? |
I got the same error for |
@unitythemaker have a try to mapping host's
|
More like related to this alpinelinux/docker-alpine#403 Could you run
if yes, run the following code in container, then restart the container.
|
Unfortunately, container has a different one. Here you go:
|
then could you run the code to overwrite |
found in docker/for-linux#755 , caused by |
I tried it, it couldn't reach database via
|
nonono... I mean run this to replace, or using text-editor to modify
|
Oh, okay. |
Interesting... The thing I don't understand is how app can't reach but tools like nslookup, curl even nodejs in the container is able to reach. |
I added this lines in docker-compose and now the solution is permanent! dns:
- 8.8.4.4
- 8.8.8.8 Btw, I checked /etc/resolv.conf after adding dns option and interestingly it's the same but see the comment (ExtServers):
|
This issue is closed, If you have any questions, you can comment and reply. |
create a file to save dns configuration like
|
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
📦 Environment
Docker
📌 Version
v1.15.19
💻 Operating System
Ubuntu
🌐 Browser
Firefox
🐛 Bug Description
The LobeChat is unable to access the OpenAI API, despite the server having successful access. This issue appears to be isolated to the LobeChat application, as other AI models (e.g., Claude, Perplexity) are functioning correctly. The server can successfully access the OpenAI API. The nextjs Docker container itself can access the OpenAI API. LobeChat frontend displays an error as shown. I am using a production docker-compose installation
I am able to access OpenAI from both VM and nextjs container:
📷 Recurrence Steps
🚦 Expected Behavior
LobeChat should be able to communicate with the OpenAI API successfully, as the server and Docker container can.
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: