steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

2012-02-14 site update: Caches are not load #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Since yesterday I receive an error message while trying to download GPX.

here is the commandline output:

D:\GT>geotoad --user=XXXXX --password=XXXXX --distanceMax=10 --includeDisable
d --output='D://' --userExclude=XXXXX --format=gpx Duesseldorf
GeoToad 3.15.3 (i386-mingw32-1.8.7)
- Report bugs or suggestions at http://code.google.com/p/geotoad/issues/
- Please include verbose output (-v) without passwords in the bug report.
( - ) Your cache directory is C:/Users/YYYYY/.geotoad/cache
( o ) Logging in as XXXXX
( o ) Login successful
( o ) Querying user preferences
( o ) Using date format MM/dd/yyyy

( o ) Performing location search for Duesseldorf (constraining to 10.0 miles)
( o ) Google Maps found "Duesseldorf". Accuracy level: Town
( - ) http://www.geocaching.com/seek/nearest.aspx?lat=51.2205320&lng=6.8100617&d
ist=10.0
 ***  Could not parse date: Hello, <a href="/my/default.aspx" title="View Profil
e for XXXXX" class="SignedInProfileLink">XXXXX</a></strong> (<a id="ctl00_hl
SignOut" accesskey="s" title="Sign Out" href="https://www.geocaching.com/login/d
efault.aspx?RESET=Y&amp;redir=http%3a%2f%2fwww.geocaching.com%2fseek%2fnearest.a
spx%3flat%3d51.2205320%26lng%3d6.8100617%26dist%3d10.0">Sign Out</a>)
 ***  Could not convert timestamp '' to Time object.
 ***  Could not parse date: All Rights Reserved.
 ***  Could not convert timestamp '' to Time object.
[   ] (1/87) Processing results for Duesseldorf: from remote
 ***  Could not parse date: Hello, <a href="/my/default.aspx" title="View Profil
e for XXXXX" class="SignedInProfileLink">XXXXX</a></strong> (<a id="ctl00_hl
SignOut" accesskey="s" title="Sign Out" href="https://www.geocaching.com/login/d
efault.aspx?RESET=Y&amp;redir=http%3a%2f%2fwww.geocaching.com%2fseek%2fnearest.a
spx%3flat%3d51.2205320%26lng%3d6.8100617%26dist%3d10.0">Sign Out</a>)
 ***  Could not convert timestamp '' to Time object.
 ***  Could not parse date: All Rights Reserved.
 ***  Could not convert timestamp '' to Time object.

Original issue reported on code.google.com by HeinzBro...@gmail.com on 15 Feb 2012 at 9:14

GoogleCodeExporter commented 9 years ago
Caused by "Web.HotFix_20120214.2" server version. Fix is being worked on, 
please stay tuned.

If you have the source, you may apply the patch below (watch out for wrapped 
lines), and check whether things are working again:

--- search.rb.SAVE  2012-01-02 22:30:50.000000000 +0100
+++ search.rb   2012-02-15 14:34:14.000000000 +0100
@@ -624,6 +624,11 @@
       # GC change 2010-11-09
       line.gsub!(/'/, '\'')
       case line
+      # catch 2012-02-14 changes
+      when /Hello, .* Profile for /
+        nil
+      when /All Rights Reserved\./
+        nil
       # <TD class="PageBuilderWidget"><SPAN>Total Records: <B>2938</B> - Page: <B>147</B> of <B>147</B>
       when /PageBuilderWidget[^:]+: +\<b\>(\d+)\<\/b\> [^:]+: +\<b\>(\d+)\<\/b\>.*?\<b\>(\d+)\<\/b\>/
         if not waypoints_total

Original comment by Steve8x8 on 15 Feb 2012 at 1:37

GoogleCodeExporter commented 9 years ago
I committed another fix to SVN, reverting the previous one.
In general, checking for texts that can change frequently is a bad idea, asking 
for yet another source code change in the near future.
The new approach separates the results table from the rest of the page, and 
makes parsing a lot more stable again.

Can you test svn rev 1071 or later, and report back? Thanks!

Original comment by Steve8x8 on 15 Feb 2012 at 3:59

GoogleCodeExporter commented 9 years ago
This should be fixed by the 3.14.8 maintenance release (and its development 
counterpart 3.15.4). Will close soon if there are no more error reports

Original comment by Steve8x8 on 17 Feb 2012 at 10:13

GoogleCodeExporter commented 9 years ago
3.14.8 (and 3.15.4) seems to have fixed this for good. Closing

Original comment by Steve8x8 on 2 Mar 2012 at 2:06