[drakma-devel] drakma vs. http://popurls.com

Chris Dean ctdean at sokitomi.com
Mon Jan 29 23:23:58 UTC 2007


I have what will probably end up being an obvious and foolish question.

When I run (http-request "http://popurls.com/") I get an error from
flexi-streams that says:

  Unexpected value #x20 in UTF-8 sequence.
     [Condition of type FLEXI-STREAM-ENCODING-ERROR]

What's going on?  Do I need to set external-format-in ?

An abbreviated stack trace is below.

Cheers,
Chris Dean

  1: (METHOD STREAM:STREAM-READ-CHAR (FLEXI-STREAMS::FLEXI-UTF-8-INPUT-STREAM)) (#<FLEXI-STREAMS::FLEXI-BINARY-UTF-8-IO-STREAM 200C2FA7>)
      Locals:
        STREAM = #<FLEXI-STREAMS::FLEXI-BINARY-UTF-8-IO-STREAM 200C2FA7>
        CLOS::.ISL. = #(#(NIL NIL NIL NIL NIL NIL NIL NIL NIL NIL ...) #(FLEXI-STREAMS::LAST-CHAR-CODE FLEXI-STREAMS::LAST-OCTET) 126 0)
        CLOS::.PV. = #(5 6)
        FLEXI-STREAMS::FIRST-OCTET-SEEN = T
        OCTET = 194
        FLEXI-STREAMS::START = 2
        COUNT = 1
        DBG::EXTRA-VALS = :DONT-KNOW
        FLEXI-STREAMS::RESULT = 2
        DBG::|repeat-counter-| = 0
        OCTET = 32
  2: (METHOD TRIVIAL-GRAY-STREAMS:STREAM-READ-SEQUENCE (FLEXI-INPUT-STREAM T T T)) (#<FLEXI-STREAMS::FLEXI-BINARY-UTF-8-IO-STREAM 200C2FA7> ...
  3: CLOS::GENERIC-FUNCTION-DISCRIMINATOR NIL
  4: DRAKMA::READ-BODY (#<FLEXI-STREAMS::FLEXI-BINARY-UTF-8-IO-STREAM 200C2FA7> ((:DATE . "Mon, 29 Jan 2007 23:02:31 GMT") (:SERVER . "Apache") (:EXPIRES . "Mon, 26 Jul 1997 05:00:00 GMT") (:CACHE-CONTROL . "no-store, no-cache, must-revalidate,post-check=0, pre-check=0") (:PRAGMA . "no-cache") (:CONNECTION . "close") (:TRANSFER-ENCODING . "chunked") (:CONTENT-TYPE . "text/html; charset=UTF-8")) T #<FLEXI-STREAMS::EXTERNAL-FORMAT (:UTF-8 :EOL-STYLE :LF) 20106C9B>)
      Locals:
        STREAM = #<FLEXI-STREAMS::FLEXI-BINARY-UTF-8-IO-STREAM 200C2FA7>
        DRAKMA::HEADERS = ((:DATE . "Mon, 29 Jan 2007 23:02:31 GMT") (:SERVER . "Apache") (:EXPIRES . "Mon, 26 Jul 1997 05:00:00 GMT") (:CACHE-CONTROL . "no-store, no-cache, must-revalidate,post-check=0, pre-check=0") (:PRAGMA . "no-cache") (:CONNECTION . "close") (:TRANSFER-ENCODING . "chunked") (:CONTENT-TYPE . "text/html; charset=UTF-8"))
        DRAKMA::MUST-CLOSE = T
        DRAKMA::TEXTP = #<FLEXI-STREAMS::EXTERNAL-FORMAT (:UTF-8 :EOL-STYLE :LF) 20106C9B>
        DRAKMA::CONTENT-LENGTH = NIL
        DRAKMA::ELEMENT-TYPE = LISPWORKS:SIMPLE-CHAR
        DRAKMA::CHUNKEDP = T
        DRAKMA::BUFFER = ...
        DRAKMA::RESULT = ...
        DRAKMA::INDEX = 49152
        DRAKMA::POS = 8192



More information about the Drakma-devel mailing list