Connection from browser throws exception (cannot treat nilas HTTP response)

61 views
Skip to first unread message

Analytic Bastard

unread,
Feb 4, 2015, 7:05:08 PM2/4/15
to alep...@googlegroups.com
The web server works does not work from Chrome. Any idea?

This is the stack trace:

java.lang.IllegalArgumentException: cannot treat nilas HTTP response
    at aleph.http.server$invalid_value_response.invoke(server.clj:123)
    at aleph.http.server$handle_request$fn__2715$fn__2716.invoke(server.clj:172)
    at manifold.deferred$chain_SINGLEQUOTE__.invoke(deferred.clj:543)
    at manifold.deferred$chain_SINGLEQUOTE__$fn__251.invoke(deferred.clj:539)
    at manifold.deferred.Listener$f__2370__auto____99.invoke(deferred.clj:151)
    at manifold.deferred.Listener.onSuccess(deferred.clj:151)
    at manifold.deferred.Deferred$fn__167.invoke(deferred.clj:216)
    at manifold.deferred.Deferred.success(deferred.clj:302)
    at manifold.deferred$success_BANG_.invoke(deferred.clj:175)
    at manifold.deferred$catch_SINGLEQUOTE_$fn__317.invoke(deferred.clj:697)
    at manifold.deferred.Listener$f__2370__auto____99.invoke(deferred.clj:151)
    at manifold.deferred.Listener.onSuccess(deferred.clj:151)
    at manifold.deferred.Deferred$fn__167.invoke(deferred.clj:216)
    at manifold.deferred.Deferred.success(deferred.clj:302)
    at manifold.deferred$success_BANG_.invoke(deferred.clj:175)
    at aleph.http.server$handle_request$fn__2705$fn__2706.invoke(server.clj:141)
    at clojure.lang.AFn.run(AFn.java:22)
    at io.aleph.dirigiste.Executor$Worker$1.run(Executor.java:34)
    at java.lang.Thread.run(Thread.java:744)

Thanks.

Zach Tellman

unread,
Feb 4, 2015, 7:17:39 PM2/4/15
to alep...@googlegroups.com
Chrome is likely asking for the favicon, and you're returning a nil response rather than a 404, which Aleph is rightfully complaining about.  I'll work on making the error message clearer about the request which is causing the error.

--
You received this message because you are subscribed to the Google Groups "Aleph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to aleph-lib+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Analytic Bastard

unread,
Feb 4, 2015, 7:21:54 PM2/4/15
to alep...@googlegroups.com
Thanks, that's it!
Reply all
Reply to author
Forward
0 new messages