Discussion:
Connection from browser throws exception (cannot treat nilas HTTP response)
Analytic Bastard
2015-02-05 00:05:08 UTC
Permalink
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.
--
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.
Zach Tellman
2015-02-05 00:17:30 UTC
Permalink
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.

On Wed, Feb 4, 2015 at 4:05 PM, Analytic Bastard <
Post by Analytic Bastard
The web server works does not work from Chrome. Any idea?
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.
--
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
For more options, visit https://groups.google.com/d/optout.
--
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
2015-02-05 00:21:54 UTC
Permalink
Thanks, that's it!
Post by Zach Tellman
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.
Post by Analytic Bastard
The web server works does not work from Chrome. Any idea?
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.
--
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
For more options, visit https://groups.google.com/d/optout.
--
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.
Loading...