ms translator web api connect timed out in azure server, but it performs normal on PC

96074769 15 Reputation points
2023-04-30T03:42:26.1866667+00:00

The API address is https://api.cognitive.microsofttranslator.com/

I use java,theoretically its performs on PC should be the same as the azure server

It performs normal on PC, i up my app to azure server, and run it, Okhttp3 has a timeout error

I use curl in azure server, but it has been stuck here

 curl -v https://api.cognitive.microsofttranslator.com/
*   Trying 20.38.87.129:443...

My translator API firewall setting is All networks mode

How to solve this problem?

Azure Translator
Azure Translator
An Azure service to easily conduct machine translation with a simple REST API call.
427 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,140 Reputation points MVP
    2023-05-01T07:42:00.72+00:00

    The problem appears to be related to the connection between your Azure server and the Microsoft Translator API endpoint.

    • Check Azure server has internet connectivity
    • Check the firewall and security settings for API and Azure Server

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.