Detecting language throws exception
GoogleCodeExporter opened this issue · comments
What steps will reproduce the problem?
1. Copy any of the detect language examples
2. run code
3. error
Translator translate = Translator.getInstance();
Language language = Language.getInstance();
String prefixLanguage = translate.detect("I am a bus"); //en
String nameLanguage = language.getNameLanguage(prefixLanguage);
System.out.println(nameLanguage); //ENGLISH
What is the expected output? What do you see instead?
print ENGLISH to screen, got array error
What version of the product are you using? On what operating system?
Please provide any additional information below.
When debugging it shows a terms of service violation.
Original issue reported on code.google.com by robtvo...@gmail.com
on 2 Apr 2014 at 10:30
I am too facing the same issue? Is there any solution so far for this?
Original comment by hytechpr...@gmail.com
on 3 Nov 2014 at 7:37
there is not solution because this isn't a software problem actually the error
is due to service restriction, every time you try to request for autodetect
google's servers answer this:
"{"responseData": null, "responseDetails": "Suspected Terms of Service Abuse.
Please see http://code.google.com/apis/errors", "responseStatus": 403}"
Original comment by nicoale...@gmail.com
on 4 Jan 2015 at 8:15