Ask a Question related to PERL Modules, Design and Development.
-
Ben Bullock #1
Net::Google 502 Bad gateway errors
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.
--
sci.lang.japan FAQ: [url]http://www.sljfaq.org/afaq/afaq.html[/url]
Ben Bullock Guest
-
SMS Gateway
Damon... and that means that is it possible or not ? Can you connect a mobile and send and receive SMS messages using the CFMX 7 SMS gateway? -
502 bad gateway
Hi, I created a c# windows application and I am using a web service calling the Main(string args) methos I can create the web service object,... -
Gateway Question
Hi folks, I have the feeling that traffic has significantly dropped in comp.lang.ruby. Is everybody on holidays or are we (still) facing gateway... -
supress errors at the page level? Undefined index errors.
I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in... -
Gateway Down?
Hi Is the gateway down or are the 4th July celebrations still going on? Haven't seen a post since 11th July. Cheers, -- Mark. ... -
Henry McGuinness #2
Re: Net::Google 502 Bad gateway errors
"Ben Bullock" <benkasminbullock@gmail.com> wrote in message
news:e4ef2p$bnv$1@ml.accsnet.ne.jp...Hi,> 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.
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:
[url]http://developer.yahoo.com/[/url]
Others were having this problem in January and posted some code (though they
were using SOAP::Lite, adjust your code accordingly):
[url]http://groups.google.co.uk/group/google.public.web-apis/browse_frm/thread/6f1ef9463b961feb/091e5c9505d5f81a?lnk=st&q=google+api+502+bad+gatew ay&rnum=1&hl=en#091e5c9505d5f81a[/url]
cheers
Henry
Henry McGuinness Guest
-
Ben Bullock #3
Re: Net::Google 502 Bad gateway errors
"Henry McGuinness" <henry.mcguinness@dphpc.ox.ac.uk> wrote in message
news:e4hbvp$le9$1@news.ox.ac.uk...>
> "Ben Bullock" <benkasminbullock@gmail.com> wrote in message
> news:e4ef2p$bnv$1@ml.accsnet.ne.jp...>> 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.Yes, I've got one of those.> 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
OK, but what about just putting a search URL together then grabbing the page> 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: [url]http://developer.yahoo.com/[/url]
via libwww and parsing it using regular expressions though? That works
almost every time, I never get any 502 errors, and the results are virtually
instant. I can't see why I would want to use this Net::Google thing in the
first place.
That is where the error comes in, it gives the line numbers from that code.> Others were having this problem in January and posted some code (though
> they were using SOAP::Lite, adjust your code accordingly):
I'm not sure I'd want to spend hours fixing it though, because I'm far from
being an expert in Perl and it would take a lot of time for me to do so. I
suppose the nature of my question was to try to find out why anyone would
use Net::Google when it seems to endlessly choke and run very slowly, and
it's easy to get the stuff from Google via another method.
Ben Bullock Guest
-
John Bokma #4
Re: Net::Google 502 Bad gateway errors
"Ben Bullock" <benkasminbullock@gmail.com> wrote:
Yes, blame it on Google. I read similar complaints in the python> Does anyone here use the Net::Google module? It seems to run very
> slowly, and I keep getting "502 Bad gateway" errors.
newsgroup, and I replied there with: just retry.
Somehow the API is quite unstable on Google's side for at least the past
two weeks. About 3 weeks ago I couldn't even access the wsdl file most of
the times.
--
John Bokma Freelance software developer
&
Experienced Perl programmer: [url]http://castleamber.com/[/url]
John Bokma Guest
-
John Bokma #5
Re: Net::Google 502 Bad gateway errors
"Henry McGuinness" <henry.mcguinness@dphpc.ox.ac.uk> wrote:
Net::Google uses SOAP::Lite, so that's probably not changing a single> Others were having this problem in January and posted some code
> (though they were using SOAP::Lite, adjust your code accordingly):
thing :-)
OTOH, I suspect that the latest Net::Google has some bugs regarding
booleans, and hence some options are always on (or off, can't recall).
I haven't had time to look into this further, but it you notice odd
results, you might want to check what Net::Google is making SOAP::Lite do
(IIRC there is a lot of hacking going in order to talk to SOAP::Lite)
--
John Bokma Freelance software developer
&
Experienced Perl programmer: [url]http://castleamber.com/[/url]
John Bokma Guest
-
Henry McGuinness #6
Re: Net::Google 502 Bad gateway errors
"Ben Bullock" <benkasminbullock@gmail.com> wrote in message
news:e4jddl$h67$1@ml.accsnet.ne.jp...> "Henry McGuinness" <henry.mcguinness@dphpc.ox.ac.uk> wrote in message
> news:e4hbvp$le9$1@news.ox.ac.uk...Maybe, but watch google's terms of service on this. They don't like>>> 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: [url]http://developer.yahoo.com/[/url]
> OK, but what about just putting a search URL together then grabbing the
> page via libwww and parsing it using regular expressions though? That
> works almost every time, I never get any 502 errors, and the results are
> virtually instant. I can't see why I would want to use this Net::Google
> thing in the first place.
"automated queries" and are not specific about all the types of query this
includes: [url]http://www.google.co.uk/intl/en/terms_of_service.html[/url]
Yes. What I meant was you'll have to change their SOAP::Lite syntax to the>>>> Others were having this problem in January and posted some code (though
>> they were using SOAP::Lite, adjust your code accordingly):
> That is where the error comes in, it gives the line numbers from that
> code.
Net::Google query you want to do so you'll have:
....do {
#your Net::Google search here instead of the doGoogleSearch stuff...
if ( $@ ) { ......
cheers
Henry
Henry McGuinness Guest
-
Ben Bullock #7
Re: Net::Google 502 Bad gateway errors
"Henry McGuinness" <henry.mcguinness@dphpc.ox.ac.uk> wrote in message
news:e4k6m1$lcf$1@news.ox.ac.uk...I'm guessing that would be more directed at people like scroogle>
> "Ben Bullock" <benkasminbullock@gmail.com> wrote in message
> news:e4jddl$h67$1@ml.accsnet.ne.jp...>>> "Henry McGuinness" <henry.mcguinness@dphpc.ox.ac.uk> wrote in message
>> news:e4hbvp$le9$1@news.ox.ac.uk...>>>>>> 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: [url]http://developer.yahoo.com/[/url]
>> OK, but what about just putting a search URL together then grabbing the
>> page via libwww and parsing it using regular expressions though? That
>> works almost every time, I never get any 502 errors, and the results are
>> virtually instant. I can't see why I would want to use this Net::Google
>> thing in the first place.
> Maybe, but watch google's terms of service on this. They don't like
> "automated queries" and are not specific about all the types of query this
> includes: [url]http://www.google.co.uk/intl/en/terms_of_service.html[/url]
([url]http://www.scroogle.org/[/url]) than someone like me, who's unlikely to download
more than 100 pages a day.
Ben Bullock Guest



Reply With Quote

