From jeffrey@cunningham.net Sat Feb 24 12:07:16 2007
From: Jeffrey Cunningham
To: drakma-devel@common-lisp.net
Subject: [drakma-devel] Bug handling bad html?
Date: Sat, 24 Feb 2007 09:07:25 -0800
Message-ID: <20070224170725.GA23865@achilles.olympus.net>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============0418561586677134672=="
--===============0418561586677134672==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
I was playing with drakma and had it drop into the debugger when
retrieving a commercial page. It looks like it might be a bug in
flexi-streams, but I don't know how to isolate the input more
specifically than what came up here:
Unexpected value #xA0 at start of UTF-8 sequence.
[Condition of type FLEXI-STREAMS:FLEXI-STREAM-ENCODING-ERROR]
Restarts:
0: [ABORT] Abort SLIME compilation.
1: [ABORT] Return to SLIME's top level.
2: [TERMINATE-THREAD] Terminate this thread (#)
Backtrace:
0: (FLEXI-STREAMS::SIGNAL-ENCODING-ERROR
#
"Unexpected value #x~X at start of UTF-8 sequence."
160)
1: (FLEXI-STREAMS::SIGNAL-ENCODING-ERROR
#
"Unexpected value #x~X at start of UTF-8 sequence.")
2: ((FLET #:BODY-FN327))
3: ((SB-PCL::FAST-METHOD STREAM-READ-CHAR
(FLEXI-STREAMS::FLEXI-UTF-8-INPUT-STREAM))
#
#
#)
4: ((SB-PCL::FAST-METHOD TRIVIAL-GRAY-STREAMS:STREAM-READ-SEQUENCE
(FLEXI-STREAMS:FLEXI-INPUT-STREAM #1=3D"#<...>" . #1#))
#
#
#
#
#
#)
5: (READ-SEQUENCE
"y make a difference this holiday season. Our gift ideas
are unique and of high quality.
=20
Gift ideas for every occasion, Christmas, Birthday, M=
other's day...
Gift ideas for every occasion, Christmas, Birthday, Mothers day, Graduat=
ion, Fathers day, Anniversary, Wedding, & Baby Shower.
=20
Hanukkah card, Christmas gift idea and Holiday greeting=
cards from MixedBlessing
Greeting Cards for Interfaith and Multicultures from MixedBlesing. Hanuk=
kah cards, Holiday cards, Christmas Gift Ideas, Holiday Gifts and more.. Find=
great gifts now!
=20
..)
6: (DRAKMA::READ-BODY
#
((:DATE . "Sat, 24 Feb 2007 06:30:03 GMT")
(:SERVER . "Apache/2.0.46 (Red Hat)")
(:SET-COOKIE
. "GS_UUID=3D24.18.193.65.1172298603635841; path=3D/,PHPSESSID=3De009=
a521cb2bf134a00df925e4f4d510; path=3D/,cart_hash=3De009a521cb2bf134a00df925e4=
f4d510; expires=3DTuesday, 27-Feb-07 06:30:03 GMT; path=3D/")
(:X-POWERED-BY . "PHP/4.4.0")
(:EXPIRES . "Thu, 19 Nov 1981 08:52:00 GMT")
(:CACHE-CONTROL
. "no-store, no-cache, must-revalidate, post-check=3D0, pre-check=3D0=
") ..))
7: ((LABELS DRAKMA::FINISH-REQUEST) NIL NIL)
8: (HTTP-REQUEST
#
:PROXY
NIL)
9: (RETRIEVE-URI
"http://www.gifttree.com/Christmas/Christmas-gift-idea.html"
NIL)
10: (WALK-SITE
"http://www.gifttree.com/Christmas/Christmas-gift-idea.html"
#
#
#
#
#
#)
11: (SB-FASL::FOP-FUNCALL)
12: (SB-FASL::LOAD-FASL-GROUP
#)
13: (SB-FASL::LOAD-AS-FASL
#
NIL
#)
14: (SB-FASL::INTERNAL-LOAD
#P"/tmp/fileIQGlqR.fasl"
#P"/tmp/fileIQGlqR.fasl"
:ERROR
NIL
NIL
:BINARY
NIL)
15: (SB-FASL::INTERNAL-LOAD
#P"/tmp/fileIQGlqR.fasl"
#P"/tmp/fileIQGlqR.fasl"
:ERROR
NIL
NIL
NIL
:DEFAULT)
16: (LOAD #P"/tmp/fileIQGlqR.fasl")
17: ((LAMBDA (STRING &KEY #1=3D"#<...>" . #1#))
"(print (walk-site \"http://www.gifttree.com\"))
"
:BUFFER
"seo.lisp"
:POSITION
27060
:DIRECTORY
#)
18: ((LAMBDA ()))
--more--
--Jeff
--===============0418561586677134672==--