steve8x8 / geotoad

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

"wid" and "guid" query modes fail with server version Tucson.Main.release-20151029.Release_412 #330

Closed steve8x8 closed 8 years ago

steve8x8 commented 8 years ago
( o ) "wid" search for "GCABCD"
 ***  HTTP redirect loop for http://www.geocaching.com/geocache/GCABCD_name.
 ***  Your cookie may have expired suddenly. Try to re-run once.
ERROR: Check your login data if problem persists.

Recent GeoToad (3.24.2-RC1), Debian Jessie. Was fine until yesterday (Tucson.Main.release-20151026.Release_406), and seems to only affect "wid" and "guid" searches.

Neither the precise reason, nor a solution are known yet.

steve8x8 commented 8 years ago

GC is using HTTPS now, and adding a third redirection level. lib/shadowget.rb had the limit set to 2, the following patch will raise it to 4 and make wid and guid queries work again (I hope, more tests pending):

+++ b/lib/shadowget.rb      2015-10-30 10:04:44.828082962 +0100
--- a/lib/shadowget.rb      2015-10-29 15:39:40.000000000 +0100
@@ -261,7 +260,7 @@
   end

-  def fetchURL (url_str, redirects=2)  # full http:// string!
+  def fetchURL (url_str, redirects=4)  # full http:// string!
     if (redirects == 0)
       displayWarning "HTTP redirect loop for #{url_str}."
       displayWarning "Your cookie may have expired suddenly. Try to re-run once."
steve8x8 commented 8 years ago

3.24.2-RC2 (now available as tarball and Debian package from work-in-progress page)

steve8x8 commented 8 years ago

A future release will switch to https completely, thus avoiding the additional level of redirect. Make sure your Windows installation is ready to handle this.