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

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Google AJAX APIs" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
To view this message on the web, visit
https://groups.google.com/d/msgid/google-ajax-search-api/fa7ea426-9a63-41ef-835d-c6e820bad8d6%40googlegroups.com
For more options, visit this group at
http://groups.google.com/group/google-ajax-search-api?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to