Still problems when network is down

1 view
Skip to first unread message

Steve8x8

unread,
Oct 23, 2010, 4:53:22 AM10/23/10
to geotoad
This morning I had an issue with my wireless link, and saw the
following:

D: Fetching [http://www.geocaching.com/seek/nearest.aspx?
lat=52.3863700&lng=13.0387800&dist=13.0]
D: 2 download errors so far, no more retries will be attempted.
D: No proxy found in environment, using standard HTTP connection.
D: No cookie to add to http://www.geocaching.com/seek/nearest.aspx?lat=52.3863700&lng=13.0387800&dist=13.0
D: GET to /seek/nearest.aspx?lat=52.3863700&lng=13.0387800&dist=13.0,
headers are User-Agent Referer Accept Accept-Charset Accept-Language
*** Unable to connect to www.geocaching.com:80: getaddrinfo: Name or
service not known (try 3)
D: Fetching [http://www.geocaching.com/seek/nearest.aspx?
lat=52.3863700&lng=13.0387800&dist=13.0]
( - ) Offline mode: not fetching
http://www.geocaching.com/seek/nearest.aspx?lat=52.3863700&lng=13.0387800&dist=13.0
D: we must not have a net connection, uh no
D: ERROR: http://www.geocaching.com/seek/nearest.aspx?lat=52.3863700&lng=13.0387800&dist=13.0
could not be fetched, even by cache
~/src/geotoad/lib/search.rb:213:in `parseSearchData': private method
`split' called for nil:NilClass (NoMethodError)
from ~/src/geotoad/lib/search.rb:192:in `processPage'
from ~/src/geotoad/lib/search.rb:140:in `searchResults'
from ~/src/geotoad/lib/search.rb:113:in `getResults'
from ~/src/geotoad/geotoad.rb:185:in `downloadGeocacheList'
from ~/src/geotoad/geotoad.rb:165:in `each'
from ~/src/geotoad/geotoad.rb:165:in `downloadGeocacheList'
from ~/src/geotoad/geotoad.rb:615

I agree that a search for caches around a certain location *needs* a
working uplink (and keeping old stuff in the cache is at least
questionable) but ruby shouldn't throw such an ugly error.
parseSearchData should even work on empty lists (an additional .to_s
would probbaly fix this).
(I have hesitated to file an Issue because it's a rather untypical
situation.)
Reply all
Reply to author
Forward
0 new messages