Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Language detection error still returns 200 ok status #52

Open
JackPGreen opened this issue Sep 2, 2014 · 0 comments
Open

Language detection error still returns 200 ok status #52

JackPGreen opened this issue Sep 2, 2014 · 0 comments

Comments

@JackPGreen
Copy link

JackPGreen commented Sep 2, 2014

The following text can be translated into English from either Serbian or Bulgarian (I believe it's actually Serbian):

"Хелло ми наме ис Драгон"

Because of this, when the language is set to "autodetect", the translated String returned is:

"ArgumentOutOfRangeException: 'from' must be a valid language. {...}
(including the leading ")

Despite this error, a 200 ok status is still returned and so the API returns the "ArgumentOutOfRangeException" thinking it's the valid translated String.

Further information on this error is here - http://social.msdn.microsoft.com/Forums/en-US/5c76aac1-6d28-49ac-8f96-5f66c47b35bc/translate-error-via-soap?forum=microsofttranslator - but unhelpfully it looks like there are other types of Exceptions that can be returned in this manner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant