[hunchentoot-devel] 404 (page not found) leads to 500 (internal server error)
rm at seid-online.de
rm at seid-online.de
Sun Mar 31 10:40:09 UTC 2013
On Sun, Mar 31, 2013 at 09:07:53AM +0000, Sebastian Tennant wrote:
> Hi Hans,
>
> While investigating the effect of subclassing ACCEPTOR-STATUS-MESSAGE, I came
> across this behaviour:
>
[...]
> I've set TBNL:*CATCH-ERRORS-P* to NIL so that you drop into the debugger. This
> shows that the call (START-OUTPUT 404 ...) results in a (LENGTH 404) call,
> which is what fails, but it's not obvious (at least not to me) where this
> LENGTH call is coming from.
Does this error message really come from the code you posted?
Your code works fine over here (hunchentoot from the latest quicklisp).
BTW, what you mean with "subclassing ACCEPTOR-STATUS-MESSAGE" ?
Isn't acceptor-status-message a generic function?
It almost sounds as if your (?) version of a-s-m returns the
http-status-code instead of an error message.
Cheers, Ralf Mattes
> Sebastian
> --
> Emacs' AlsaPlayer - Music Without Jolts
> Lightweight, full-featured and mindful of your idyllic happiness.
> http://home.gna.org/eap
>
> ;;; ~/common-home/workspace/hunchentoot/srv.lisp
>
> (in-package "CL-USER")
>
> (asdf:load-system :hunchentoot)
> (asdf:load-system :drakma)
>
> (setq tbnl:*catch-errors-p* nil)
>
> (tbnl:start (make-instance
> 'tbnl:acceptor
> :document-root nil
> :error-template-directory nil
> :address "127.0.0.1"
> :port 50000))
>
> (write (drakma:http-request "http://127.0.0.1:50000"))
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
More information about the Tbnl-devel
mailing list