Troubleshooting Docker Network Issues with DeepL API

0
3
Asked By TechieNinja92 On

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

Answered By CuriousCoder77 On

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.

Answered By FrontendFan45 On

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?

Answered By NetworkGuru83 On

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.