Drakma on Ubuntu

"Lawrence Au (as la at synap dot news)" <[email protected]> Thu, 16 Jul 2026 01:12:29 -0400
Newsgroups gmane.lisp.lispworks.general
Message-ID <[email protected]>
Hi,

   I earlier asked for suggestions for connecting Lispworks to Ollama LLMs. Thanks to all the advice, I was able to settle on Drakma to make that connection work on MacOS. I’m working on putting the code I wrote which calls Drakma into a single file so others can use it too. But I’ve run into a problem porting that code from Lispworks 8.01 MacOS Sequoia 15.7.3 to Lispworks 8.01, running on Ubuntu 22.04.3 LTS.

    Calling Drakma in MacOS like this:

(drakma:http-request "https://example.com"
                     :method :get
                     :parameters '(("query" . "drachma") ("format" . "json"))
                     :user-agent "Mozilla/5.0 (compatible; MyLispBot/1.0)")

;  Returns the expected results:

200
((:DATE . "Tue, 14 Jul 2026 20:47:32 GMT") (:CONTENT-TYPE . "text/html") (:TRANSFER-ENCODING . "chunked") (:CONNECTION . "close") (:SERVER . "cloudflare") (:LAST-MODIFIED . "Wed, 01 Jul 2026 17:50:18 GMT") (:ALLOW . "GET, HEAD") (:ACCEPT-RANGES . "bytes") (:AGE . "88") (:CF-CACHE-STATUS . "HIT") (:CF-RAY . "a1b36214ecb899f9-IAD"))
#<PURI:URI https://example.com/?query=drachma&format=json>
#<FLEXI-STREAMS:FLEXI-IO-STREAM 8080002A9B>
T
"OK"

But making the same call in Ubuntu, I get this error:

CL-USER 1 > (drakma:http-request "https://example.com"
                     :method :get
                     :parameters '(("query" . "drachma") ("format" . "json"))
                     :user-agent "Mozilla/5.0 (compatible; MyLispBot/1.0)")

Error: No applicable methods for #<STANDARD-GENERIC-FUNCTION STREAM::WAIT-FOR-STREAMS-LIST-CHECK 40F046867C> with args (15)
  1 (continue) Call #<STANDARD-GENERIC-FUNCTION STREAM::WAIT-FOR-STREAMS-LIST-CHECK 40F046867C> again
  2 (abort) Return to top loop level 0.

Type :b for backtrace or :c <option number> to proceed.
Type :bug-form "<subject>" for a bug report template or :? for other options.

CL-USER 2 : 1 > :b
Call to INVOKE-DEBUGGER
Call to ERROR
Call to CERROR
Call to (METHOD NO-APPLICABLE-METHOD (T))
Call to CLOS::APPLY-NO-APPLICABLE-METHOD
Call to CL+SSL::INPUT-WAIT
Call to (SUBFUNCTION 2 CL+SSL:MAKE-SSL-CLIENT-STREAM)
Call to CL+SSL::COLLECTING-VERIFY-ERROR-IMPL
Call to CL+SSL:MAKE-SSL-CLIENT-STREAM
Call to (SUBFUNCTION 1 DRAKMA::MAKE-SSL-STREAM)
Call to CL+SSL::CALL-WITH-GLOBAL-CONTEXT
Call to DRAKMA:HTTP-REQUEST
Call to EVAL
Call to CAPI::CAPI-TOP-LEVEL-FUNCTION
Call to CAPI::INTERACTIVE-PANE-TOP-LOOP
Call to MP::PROCESS-SG-FUNCTION

CL-USER 3 : 1 > 

Can anybody suggest how I can fix this bug? I’ve upgraded Drakma and openssl on my Ubuntu laptop, to the latest versions, but the error persists.

Best,

Lawrence Au


_______________________________________________
Lisp Hug - the mailing list for LispWorks users
[email protected]
http://www.lispworks.com/support/lisp-hug.html