Bad Request 400 Error

29 views
Skip to first unread message

Geng Fu

unread,
Apr 9, 2015, 7:18:41 AM4/9/15
to google-ajax...@googlegroups.com
Hi,

while I try to call the Google translate v2 api, I receive the following in the response body:

<HTML>
<HEAD>
<TITLE>Bad Request</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Bad Request</H1>
<H2>Error 400</H2>
</BODY>
</HTML>
which is not a JSON format.

The url I used is:

https://www.googleapis.com/language/translate/v2?key=MY_API_KEY&source=af&target=it&q=A%20barman%20is%20net%20&#39;n%20apteker%20met%20&#39;n%20beperkte%20voorraad

And when I try to call this url again, I get the correct result, which means the server sometimes returns a HTML file instead of JSON file randomly.

Could you please help take look at it?


Thanks,

Jeremy

Reply all
Reply to author
Forward
0 new messages