Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clackup app with woo got "message-complete callback failed", but succeeded with woo:run #122

Open
WildBench opened this issue Dec 16, 2024 · 0 comments

Comments

@WildBench
Copy link

WildBench commented Dec 16, 2024

Can anyone help with my trouble?
The test app is as followed. It failed with clackup with woo, but went through with woo:run, clackup also worked with hunchentoot.

SBCL 2.4.11
woo 20241012-git
clack 20241012-git
hunchentoot-1.3.1

(dolist (p '(:clack :cl-who :lack-request :woo))
  (ql:quickload p))

(defun demo (env)
  (declare (ignore env))
  (case (getf env :request-method)
    (:get
     `(200 nil (,(cl-who:with-html-output-to-string (s)
		   (:html
		    (:body
		     (:form :method "post" 
			    :enctype "multipart/form-data"
			    (:input :type "text"
				    :name "foo")
			    (:input :type "text" :name "bar")
			    (:input :type "submit"))))))))
    (:post
     (let* ((req (lack.request:make-request env))
	    (foo (assoc "foo" (lack.request:request-body-parameters req) :test #'equal))
	    (bar (assoc "bar" (lack.request:request-body-parameters req) :test #'equal))
	    )
       `(200 nil (,(format nil "~S~%~S~%~S~%" env foo bar)))))))

(defparameter *handler* (clack:clackup 'demo :server :woo))
;(woo:run 'demo)

The error was:
Callback Error: the message-complete callback failed
#<CIRCULAR-STREAMS:CIRCULAR-INPUT-STREAM {1011889533}> cannot be printed readably.

@WildBench WildBench changed the title clackup app with woo failed about message-complete callback failed, but succeeded with woo:run clackup app with woo got "message-complete callback failed", but succeeded with woo:run Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant