steve8x8 / geotoad

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

invalid byte sequence in UTF-8 (ArgumentError) #256

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
geotoad got this error:
"(156/382) Reading: [GC27YV7] "Scientia Inutilis 2.0" from local 
/volume1/homes/mkp/geotoad/lib/details.rb:247:in `split': invalid byte sequence 
in UTF-8 (ArgumentError)
    from /volume1/homes/mkp/geotoad/lib/details.rb:247:in `parseCache'
    from /volume1/homes/mkp/geotoad/lib/details.rb:103:in `fetch'
    from /volume1/homes/mkp/geotoad/geotoad.rb:550:in `block in fetchGeocaches'
    from /volume1/homes/mkp/geotoad/geotoad.rb:546:in `each_key'
    from /volume1/homes/mkp/geotoad/geotoad.rb:546:in `fetchGeocaches'
    from /volume1/homes/mkp/geotoad/geotoad.rb:831:in `<main>'
"
I think it's because some not valid caracters in the cache [GC27YV7] "Scientia 
Inutilis 2.0" 

i run the program on my sonology NAS: 
Linux BusyBox v1.16.1 
Ruby Version: ruby 1.9.1p243 (2009-07-16 revision 24175) [powerpc-linux-spe]
Program Version:
GeoToad 3.16.1 (powerpc-linux-spe-1.9.1)

Command line:
/opt/bin/ruby /volume1/homes/mkp/geotoad/geotoad.rb -u MYUSER -p MYPW -o 
/volume1/homes/mkp/CloudStation/GPX/GPX$1.gpx -x gpx -q coord "N 52 01.775 E 
008 37.374" -y $1 -E MYUSER

Best Regards 
Michael

Original issue reported on code.google.com by kipp.mic...@googlemail.com on 26 Sep 2012 at 10:29

GoogleCodeExporter commented 9 years ago
This looks like another issue that has been resolved (the fix will be in 3.16.2 
to be released soon). A typical cause for such behaviour (now that most other 
causes have been handled) is an incomplete or completely corrupted cache 
description file.

Can you verify/check whether
- you're using a proxy server (if yes, try to bypass it)
- there had been a transmission error during fetch of the cdpf.aspx file
(cdpf.aspx_guid_9cb528fe-5659-475b-ndled95aa-4dc3ffbf16f6_lc_10, in your cache 
directory)
- renaming that file and repeating the query would produce the same issue
- using the current SVN trunk would still result in the same error
?

I'm having a hard time to reproduce the issue (ruby i486-linux-1.9.3, Debian 
Wheezy), using the current SVN trunk.

Please check the cdpf file, and re-run using "-v -q wid GC27YV7", to narrow 
down the problem (if it's a GeoToad one). Thanks. -S

Original comment by Steve8x8 on 27 Sep 2012 at 7:06

GoogleCodeExporter commented 9 years ago
I have seen a couple of completely corrupted cdpf files, very probably caused 
by a HTML proxy getting confused (by an unknown force). After three months of 
no additional information, and with some warning code in place, I'm closing 
this issue.

Original comment by Steve8x8 on 30 Dec 2012 at 3:04