This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-30
Channels
- # arachne (2)
- # beginners (8)
- # boot (19)
- # chestnut (2)
- # cider (1)
- # clara (1)
- # cljs-dev (31)
- # cljsrn (82)
- # clojure (163)
- # clojure-dusseldorf (7)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-norway (3)
- # clojure-russia (24)
- # clojure-sg (5)
- # clojure-spec (6)
- # clojure-uk (42)
- # clojurescript (239)
- # core-async (4)
- # cursive (10)
- # data-science (18)
- # datascript (1)
- # datomic (110)
- # emacs (16)
- # euroclojure (1)
- # events (1)
- # figwheel (1)
- # hoplon (22)
- # keechma (2)
- # klipse (5)
- # lein-figwheel (3)
- # leiningen (7)
- # luminus (27)
- # melbourne (2)
- # mount (5)
- # nyc (7)
- # off-topic (35)
- # om (20)
- # onyx (49)
- # pedestal (41)
- # re-frame (31)
- # reagent (18)
- # remote-jobs (9)
- # ring (4)
- # ring-swagger (1)
- # spacemacs (6)
- # specter (6)
- # uncomplicate (3)
- # unrepl (9)
- # untangled (54)
- # yada (11)
I’m thinking of doing a simple nodejs web server that is compatible with bidi routes. It’ll just be a wrapper around expressjs. Anything like that currently existing?
uses bidi as the default
@malcolmsparks - I have finally found the time to look at the stuff you sent / posted yesterday. Thanks again, but I am afraid I need to ask you for a little more help... I am getting this when I POST:
415: Unsupported Media Type
The request entity has a media type which the server or resource does not support.
clojure.lang.ExceptionInfo: Unsupported Media Type {:status 415, :message "Method does not declare that it consumes this content-type", :consumes #{"application/octet-stream"}, :content-type <#C0702A7SB|yada>.media_type.MediaTypeMap{:name "multipart/form-data", :type "multipart", :subtype "form-data", :parameters {"boundary" "----WebKitFormBoundarygYuTt1DtxxTptU3p"}, :quality 1.0}}
at clojure.core$ex_info.invokeStatic(core.clj:4725)
at clojure.core$ex_info.invoke(core.clj:4725)
at yada.interceptors$process_request_body.invokeStatic(interceptors.clj:168)
at yada.interceptors$process_request_body.invoke(interceptors.clj:144)
at manifold.deferred$eval7903$chain___7924.invoke(deferred.clj:863)
at manifold.deferred$eval7903$chain___7924.doInvoke(deferred.clj:884)
at clojure.lang.RestFn.applyTo(RestFn.java:151)
at clojure.core$apply.invokeStatic(core.clj:661)
at clojure.core$apply.invoke(core.clj:652)
at manifold.deferred$eval7903$chain___7924$fn__7928.invoke(deferred.clj:889)
at manifold.deferred.Listener.onSuccess(deferred.clj:219)
at manifold.deferred.Deferred$fn__7702.invoke(deferred.clj:378)
at clojure.lang.AFn.run(AFn.java:22)
at io.aleph.dirigiste.Executor$Worker$1.run(Executor.java:62)
at manifold.executor$thread_factory$reify__7105$f__7106.invoke(executor.clj:44)
at clojure.lang.AFn.run(AFn.java:22)
at java.lang.Thread.run(Thread.java:745)
and I am assuming I am doing something silly, and that you might be able to help me out..?
I have the
enctype="multipart/form-data"
in my HTML form definition, and I have used the example you posted, but clearly adapted it to my codebase...@maleghast Maybe you need to add “multipart/form-data” to your :consumes
set?