Clojurians
#yada
<
2016-07-10
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

iwillig18:07:29

hi, i followed the yada tutorial and I seem to be getting the No implementation of method: :resolve-handler of protocol: #'bidi.bidi/Matched error.

iwillig18:07:32

java.lang.IllegalArgumentException: No implementation of method: :resolve-handler of protocol: #'bidi.bidi/Matched found for class: yada.resource.Resource
	at clojure.core$_cache_protocol_fn.invokeStatic(core_deftype.clj:568)
	at clojure.core$_cache_protocol_fn.invoke(core_deftype.clj:560)
	at bidi.bidi$eval51890$fn__51904$G__51879__51911.invoke(bidi.cljc:183)
	at bidi.bidi$match_pair.invokeStatic(bidi.cljc:202)
	at bidi.bidi$match_pair.invoke(bidi.cljc:195)
	at bidi.bidi$eval52013$fn__52014$fn__52015.invoke(bidi.cljc:336)
	at clojure.core$some.invokeStatic(core.clj:2592)
	at clojure.core$some.invoke(core.clj:2583)
	at bidi.bidi$eval52013$fn__52014.invoke(bidi.cljc:336)
	at bidi.bidi$eval51890$fn__51904$G__51879__51911.invoke(bidi.cljc:183)
	at bidi.bidi$match_pair.invokeStatic(bidi.cljc:202)
	at bidi.bidi$match_pair.invoke(bidi.cljc:195)
	at bidi.bidi$match_route_STAR_.invokeStatic(bidi.cljc:382)
	at bidi.bidi$match_route_STAR_.invoke(bidi.cljc:380)
	at bidi.ring$make_handler$fn__31400.invoke(ring.clj:35)
	at aleph.http.server$handle_request$fn__28617$f__16828__auto____28618.invoke(server.clj:154)
	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__16710$f__16711.invoke(executor.clj:36)
	at clojure.lang.AFn.run(AFn.java:22)
	at java.lang.Thread.run(Thread.java:745)

iwillig18:07:44

this is my yada related code

iwillig18:07:47

(yada/listener
                         ["/"
                          [
                           ["hello" (yada/as-resource "Hello World!")]
                           ["test" (yada/resource {:produces "text/plain"
                                              :response "This is a test!"})]
                           [true (yada/as-resource nil)]]]
                         #_(routes/all  (get-in self [:database :connection]))
                         {:port 8080})

iwillig18:07:58

can anyone spot whats going on?

iwillig18:07:13

these are my versions

[yada "1.1.28"]
                 [aleph "0.4.1"]
                 [bidi "2.0.8"]