AlwaysSurprised has asked for the wisdom of the Perl Monks concerning the following question:
My grabbing URLs to sniff out some data is working pretty much as I expect it to work, but just occasionally my script aborts.
Invariablly, it crashes out at.
my $dom = $ua->get($targetURL) -> result;giving an error of "inactivity timeout" or "premature connection close". Now I'm not bothered what the cause is, but I would like a way of reacting to the error. I've hunted about but I can't see anything I can grab on to. What am I missing?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Reacting to Mojo::UserAgent Errors
by choroba (Cardinal) on Apr 16, 2018 at 15:40 UTC | |
Re: Reacting to Mojo::UserAgent Errors
by marto (Cardinal) on Apr 16, 2018 at 15:45 UTC | |
by AlwaysSurprised (Novice) on Apr 16, 2018 at 23:51 UTC | |
by marto (Cardinal) on Apr 17, 2018 at 03:42 UTC | |
by rizzo (Curate) on Apr 17, 2018 at 21:59 UTC | |
by AlwaysSurprised (Novice) on Apr 18, 2018 at 15:06 UTC | |
by AlwaysSurprised (Novice) on Apr 21, 2018 at 23:52 UTC |
Back to
Seekers of Perl Wisdom