Welcome to the CHICKEN Scheme pasting service
simple request added by gahr on Sun Jan 19 14:53:51 2025
> cat simple-req.scm (import (chicken io) (intarweb) (http-client)) (let ((req (make-request uri: "https://google.com"))) (with-input-from-request req #f read-string)) > chicken-csi -s simple-req.scm Error: (call-with-input-request) The first argument must be either an uri-common object, an intarweb request object, or an URI string #<intarweb#request> #f #<procedure (f6040 p10826038 r10836039)> Call history: <syntax> (##core#begin (with-input-from-request req #f read-string)) simple-req.scm:3 (with-input-from-request req #f read-string) simple-req.scm:2 (make-request #:uri "https://google.com") simple-req.scm:2 (make-request #:uri "https://google.com") simple-req.scm:3 (with-input-from-request req #f read-string) http-client.scm:903: call-with-input-request* http-client.scm:803: uri-common#uri-reference? http-client.scm:805: intarweb#request? http-client.scm:805: intarweb#request-uri http-client.scm:807: uri-common#uri? http-client.scm:810: uri-common#uri-reference? http-client.scm:808: http-client-error http-client.scm:344: chicken.condition#make-property-condition http-client.scm:345: chicken.condition#make-property-condition http-client.scm:343: chicken.condition#make-composite-condition http-client.scm:343: srfi-18#raise <--