ZetaResourceEditor
ZetaResourceEditor copied to clipboard
Bing translate exception
I'm getting this exception while using Bing translate.. Funny enough it managed to translate a single word but all other get this exception:
System.Net.WebException
The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse() at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.TranslateArray(AccessToken at, String from, String to, IEnumerable`1 texts) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingTranslationHelper.cs:line 277 at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass8.<TranslateArray>b__5() in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 172 at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 254 at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.TranslateArray(String appID, String appID2, String[] texts, String sourceLanguageCode, String destinationLanguageCode, String[] wordsToProtect, String[] wordsToRemove) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 168 at ZetaResourceEditor.UI.Translation.AutoTranslateForm.translateArray(String appID, String appID2, ITranslationEngine ti, DataTable table, String refLanguageCode, DataColumn column, Int32 refValueIndex, String raw, BackgroundWorker bw, Int32 delayMilliseconds, String prefixSuccess, Int32 translationSuccessCount, Int32& translationErrorCount, Boolean continueOnErrors, String prefixError, Int32& translationCount) in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 910 at ZetaResourceEditor.UI.Translation.AutoTranslateForm.<>c__DisplayClass9.<buttonTranslate_Click>b__5(Object s, DoWorkEventArgs a) in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 569 at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e) at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)
WebException { Status=ProtocolError, Response=HttpWebResponse { IsMutuallyAuthenticated=False, Cookies=CookieCollection { IsReadOnly=True, Count=0, IsSynchronized=False,
},
Headers=WebHeaderCollection
{
Count=4,
Keys=KeysCollection
{
Count=4
},
AllKeys=String[]
{
Length=4,
LongLength=4,
Rank=1,
, IsReadOnly=False, IsFixedSize=True, IsSynchronized=False
"X-MS-Trans-Info",
"Content-Length",
"Content-Type",
"Date"
},
},
ContentLength=275,
ContentEncoding="",
ContentType="text/html; charset=utf-8",
CharacterSet="utf-8",
Server="",
LastModified=14-06-2013 13:35:58,
StatusCode=BadRequest,
StatusDescription="Bad Request",
ProtocolVersion=Version
{
Major=1,
Minor=1,
Build=-1,
Revision=-1,
MajorRevision=-1,
MinorRevision=-1
},
ResponseUri=Uri
{
AbsolutePath="/v2/Http.svc/TranslateArray",
AbsoluteUri="http://api.microsofttranslator.com/v2/Http.svc/TranslateArray?appId=",
Authority="api.microsofttranslator.com",
Host="api.microsofttranslator.com",
HostNameType=Dns,
IsDefaultPort=True,
IsFile=False,
IsLoopback=False,
IsUnc=False,
LocalPath="/v2/Http.svc/TranslateArray",
PathAndQuery="/v2/Http.svc/TranslateArray?appId=",
Port=80,
Query="?appId=",
Fragment="",
Scheme="http",
OriginalString="http://api.microsofttranslator.com/v2/Http.svc/TranslateArray?appId=",
DnsSafeHost="api.microsofttranslator.com",
IsAbsoluteUri=True,
Segments=String[]
{
Length=4,
LongLength=4,
Rank=1,
, IsReadOnly=False, IsFixedSize=True, IsSynchronized=False
"/",
"v2/",
"Http.svc/",
"TranslateArray"
},
UserEscaped=False,
UserInfo=""
},
Method="POST",
IsFromCache=False
},
Message="The remote server returned an error: (400) Bad Request.",
Data=
[
]
, InnerException=null, TargetSite=RuntimeMethodInfo: GetResponse, StackTrace=" at System.Net.HttpWebRequest.GetResponse()\r\n at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingTranslationHelper.TranslateArray(AccessToken at, String from, String to, IEnumerable`1 texts) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingTranslationHelper.cs:line 277\r\n at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.<>c__DisplayClass8.<TranslateArray>b__5() in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 172\r\n at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.protectWSCall(ActionToProtect action) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 254\r\n at ZetaResourceEditor.RuntimeBusinessLogic.Translation.BingSoapTranslationEngine.TranslateArray(String appID, String appID2, String[] texts, String sourceLanguageCode, String destinationLanguageCode, String[] wordsToProtect, String[] wordsToRemove) in c:\P\ZetaResourceEditor\Source\RuntimeBusinessLogic\Translation\BingSoapTranslationEngine.cs:line 168\r\n at ZetaResourceEditor.UI.Translation.AutoTranslateForm.translateArray(String appID, String appID2, ITranslationEngine ti, DataTable table, String refLanguageCode, DataColumn column, Int32 refValueIndex, String raw, BackgroundWorker bw, Int32 delayMilliseconds, String prefixSuccess, Int32 translationSuccessCount, Int32& translationErrorCount, Boolean continueOnErrors, String prefixError, Int32& translationCount) in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 910\r\n at ZetaResourceEditor.UI.Translation.AutoTranslateForm.<>c__DisplayClass9.<buttonTranslate_Click>b__5(Object s, DoWorkEventArgs a) in c:\P\ZetaResourceEditor\Source\Main\UI\Translation\AutoTranslateForm.cs:line 569\r\n at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)\r\n at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)", HelpLink=null, Source="System" }
No one?
I have gotten this error when the new limit of 2MM char/month has been reached.
I noticed it can also happen with Bing translate if keys are swapped. The order you get them from Bing is the reserve order needed to be entered into Zeta Resource Editor..
Anyhow, it now returns **** The remote server returned an error: (400) Bad Request.
It's a pity, Zeta Resource Editor was the best tool around, now there just isn't any tool.
@bluee - See my post in the support forums: https://groups.google.com/forum/#!topic/zeta-resource-editor/bKRJpuBP2OQ