I'm working on a university project server and encountering a problem when trying to send a request to the DeepL API. While the server appears to be running (indicated by a 500 error when sending requests from the frontend), I'm getting a ConnectTimeoutError with a timeout of 10 seconds for the address api-free.deepl.com:443. I've already checked the firewall settings, and there are no restrictions. Normally, I shouldn't wait more than 5 seconds for a response from that API. Any suggestions on how to resolve this?
3 Answers
It sounds like the issue isn't really with Docker itself but might be related to your application's configuration. When I checked the DeepL API URL, it returns a 404 error in the browser. However, it's essential to make sure you're using the correct endpoint - it should start with https://. Maybe check your API request formatting? It might be better to get help in more specialized support channels.
Just to clarify, the 404 might be for the main API URL, but you mentioned you're trying the /v2/translate endpoint, which should return a proper response with your API key. Since it works outside of Docker, maybe something in your Docker network settings needs adjustment. Have you checked if the Docker container can access external URLs?
Docker isn't going to resolve issues with external websites. I ran a curl command on https://api-free.deepl.com, and it responds with a 404 error. You should consider reaching out to DeepL support for clarification. What makes you think Docker is part of the problem?
Related Questions
How To: Running Codex CLI on Windows with Azure OpenAI
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically