[hunchentoot-devel] 404 (page not found) leads to 500 (internal server error)

Hans Hübner hans.huebner at gmail.com
Sun Mar 31 11:25:18 UTC 2013


This is fixed in Hunchentoot v1.2.16, thank you for the report.

-Hans


On Sun, Mar 31, 2013 at 11:07 AM, Sebastian Tennant
<sebyte at smolny.plus.com>wrote:

> Hi Hans,
>
> While investigating the effect of subclassing ACCEPTOR-STATUS-MESSAGE, I
> came
> across this behaviour:
>
>  CL-USER> (load "srv.lisp")
>
>  The value 404 is not of type SEQUENCE.
>    [Condition of type TYPE-ERROR]
>
> --8<---------------cut here---------------start------------->8---
> ;;; 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"))
> --8<---------------cut here---------------end--------------->8---
>
> 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.
>
> Sebastian
> --
> Emacs' AlsaPlayer - Music Without Jolts
> Lightweight, full-featured and mindful of your idyllic happiness.
> http://home.gna.org/eap
>
>
> _______________________________________________
> tbnl-devel site list
> tbnl-devel at common-lisp.net
> http://common-lisp.net/mailman/listinfo/tbnl-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/tbnl-devel/attachments/20130331/886b3a18/attachment.html>


More information about the Tbnl-devel mailing list