Re: Net::Google 502 Bad gateway errors




"Ben Bullock" <benkasminbullock@xxxxxxxxx> wrote in message
news:e4ef2p$bnv$1@xxxxxxxxxxxxxxxxxxx
Does anyone here use the Net::Google module? It seems to run very slowly,
and I keep getting "502 Bad gateway" errors. In the end I just downloaded
the search page using libwww and parsed it myself, which is almost
instant.

Hi,
I think the "Bad Gateway" stuff is actually a Google api/server problem. I
had this and it was nothing to do with Net::Google or my query. (though you
might have posted some code :)) - I assume you have a google api key, by
the way. I looked at a google api newsgroup and this was a fairly regular
problem

Believe it or not the solution is probably: leave it a couple of minutes and
try again a few times. It does work, but sometimes rather sporadically. I
found the Yahoo api stuff much more reliable. have a look at that:
http://developer.yahoo.com/

Others were having this problem in January and posted some code (though they
were using SOAP::Lite, adjust your code accordingly):

http://groups.google.co.uk/group/google.public.web-apis/browse_frm/thread/6f1ef9463b961feb/091e5c9505d5f81a?lnk=st&q=google+api+502+bad+gateway&rnum=1&hl=en#091e5c9505d5f81a

cheers
Henry


.