ndriks
ndriks

Reputation: 359

TranslateApiException in Microsoft Translator in java

I'm currently trying to connect to Microsoft Translator via microsoft-translator-java-api provided here. I've followed the step described here and after following the simple code here, I managed to send some sentence to be translated.

But the problem is, the translation only work for the 1st time. When the second sentence is send to the api, TranslateApiException always generated as translation result and I have to wait for about 10 minutes before new sentence can be sent.

Can anyone help?
thanks before

Upvotes: 0

Views: 449

Answers (1)

Laurence Moroney
Laurence Moroney

Reputation: 1263

To troubleshoot this:

  1. Make sure you have a subscription to translator. Sign in here: https://datamarket.azure.com/account/datasets

-- Does it show that you have a translator subscription, and that it is active? If not, sign up for one (you can use the free 2 million character one)

  1. Make sure you have registered your app on Azure. Do that here: https://datamarket.azure.com/developer/applications

-- And use the Client ID and Client Secret for that registered app.

Upvotes: 2

Related Questions