I am trying to use Bing Translation API in one of my WebApps. The translation API works well for most of the languages but when I try to convert a Chinese (zh-CHS) to English(en), I found that Bing Translation API failed and there was not translations.
I tried the same in Bing Translator on Web (http://www.bing.com/translator) and could see error in developer console. Attaching screenshot. The error which I found in developer console for different network calls is:
On Web(http://bing.com/translator)
My Sample Chinese Text: 请使用在右上角的[联系我]按钮发送短信给我确认房源
URL (from developer console):
http://api.microsofttranslator.com/v2/ajax.svc/TranslateArray2?appId=%22Tvc5VH_qoQdKMHer_nmjsVq1AQCngDSjYxa8oy7tL5CU*%22&texts=[%22%E8%AF%B7%E4%BD%BF%E7%94%A8%E5%9C%A8%E5%8F%B3%E4%B8%8A%E8%A7%92%E7%9A%84[%E8%81%94%E7%B3%BB%E6%88%91]%E6%8C%89%E9%92%AE%E5%8F%91%E9%80%81%E7%9F%AD%E4%BF%A1%E7%BB%99%E6%88%91%E7%A1%AE%E8%AE%A4%E6%88%BF%E6%BA%90%22]&from=%22zh-cht%22&to=%22en%22&oncomplete=_mstc4&onerror=_mste4&loc=en&ctr=&rgp=164a0c7c
Errors:
_mste8("TranslateApiException: ServerTooBusy : ID=0818.V2_Json.TranslateArray2.3E8804A3");
_mste4("TranslateApiException: ServerTooBusy : ID=2241.V2_Json.TranslateArray2.3DAC94B2");
Using my web app (via Bing Translation API)
Even in my web app, when I try to catch the exception I get below response for the request:
Request URL:
http://api.microsofttranslator.com/v2/Http.svc/Translate?text=%E8%AF%B7%E4%BD%BF%E7%94%A8%E5%9C%A8%E5%8F%B3%E4%B8%8A%E8%A7%92%E7%9A%84[%E8%81%94%E7%B3%BB%E6%88%91]%E6%8C%89%E9%92%AE%E5%8F%91%E9%80%81%E7%9F%AD%E4%BF%A1%E7%BB%99%E6%88%91%E7%A1%AE%E8%AE%A4%E6%88%BF%E6%BA%90&from=zh-CHS&to=en
Response:
400 Bad Request: <html><body><h1>TranslateApiException</h1><p>Method: Translate()</p><p>Message: ServerTooBusy</p><code></code><p>message id=3010.V2_Rest.Translate.40A8AEC6</p></body></html>
And this happens only for text with Chinese characters. Other languages works just fine, tried with english etc.