Limits in request to Bing Translator API
-
9 มกราคม 2555 23:23What is limitation for using Bing Translator API?Following error message we get sometimes when we make request to your service. Why?Type: System.ServiceModel.CommunicationException. Message: The underlying connection was closed: A connection that was expected to be kept alive was closed by the server.Stack:Server stack trace:at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
ตอบทั้งหมด
-
30 มกราคม 2555 5:22เจ้าของ
Hi Dimitrij,
if you reach any of the set quotas of the Translator API, it will return an http error and a descriptive message detailing which quota was exceeded. Your message looks like a timeout. If you use a request size above 5000 characters, try shorter requests.
Chris Wendt
Microsoft Translator- เสนอเป็นคำตอบโดย Gabinnyo 1 กุมภาพันธ์ 2555 12:58
-
6 พฤษภาคม 2555 11:55
Does this limit got increased recently? Last time(year) when I checked it was around 1000 characters per request.
-
6 พฤษภาคม 2555 17:00เจ้าของ
The maximum request size for the Translate() method was always 10000 characters.
Chris Wendt
Microsoft Translator -
6 พฤษภาคม 2555 20:06
Thanks Chris.
Is the limit per App ID or per IP address that is sending the requests? -
6 พฤษภาคม 2555 23:51เจ้าของPer request.
-
7 พฤษภาคม 2555 0:19
Actually I meant to ask ... besides the 'per request' limit are there any other limits at the AppId level? ie like x number of words per day per AppId.
-
7 พฤษภาคม 2555 2:46เจ้าของ
AppIds are deprecated. For old appids in use, the limit is whatever you agreed with us. For new accounts in the Azure Marketplace most subscription levels are currently limited at around 500K characters per hour. Our recommendation is to code your application such that your maintain a sleep-retry loop for quota overruns and timeouts.
Chris Wendt
Microsoft Translator -
17 มกราคม 2556 13:12
bing translate specifications and pricing do not match each other. if one reques measures 10k characters, and if I can get 500k characters per hour max - that means I can made 50 request per hour.
one month = 720 hours x 50 request = 36000 requests
so. how can I use for example 2,5mln paid request per month if technically 36k is possible?
am I missing something?
- แก้ไขโดย marioskocz 17 มกราคม 2556 13:49
-
17 มกราคม 2556 15:58เจ้าของ
Hi Mario,
Pricing is per character. It doesn't matter over how many requests you split these characters.
The above mentioned throughput limitations are also per character. So if you have a 2 million character per month subscription, you can use up your monthly quota in four hours. And then you have to wait until your next monthly anniversary for your account to replenish with 2 million characters.
You can always see your current balance under https://datamarket.azure.com/account/datasets.
Pretty simple. Isn't it?
Chris Wendt
Microsoft Translator