Fork me on GitHub
#duct
<
2017-12-12
>
myguidingstar11:12:03

but got this No implementation of method: :write-body-to-stream of protocol: #&apos;ring.core.protocols/StreamableResponseBody found for class: clojure.lang.PersistentHashMap

myguidingstar11:12:14

the response code for my http handler is [::response/ok (fetch-thing db 1)]

myguidingstar11:12:28

what am I missing?

lovuikeng11:12:29

that blog post is a bit outdated, try the new and more complete one https://github.com/duct-framework/docs/blob/master/GUIDE.rst

myguidingstar13:12:55

thanks, the docs is clear

myguidingstar13:12:26

Duct is the best dev experience I've ever had. Thank you so much James!

yogidevbear15:12:36

Is there a way to override the default port of 3000 for duct?

rickmoynihan15:12:44

sure env PORT=8080 lein repl

rickmoynihan16:12:33

or adding to your duct config: {:duct.server/http {:port 8080}} (I think - not tested - YMMV)…. See here @yogidevbear: https://github.com/duct-framework/module.web/blob/master/src/duct/module/web.clj#L28

yogidevbear16:12:02

Thanks @rickmoynihan 👍 Will test a little later. Ended up closing one of my other processes that was running on 3000 to keep going

weavejester23:12:51

You’re welcome, @myguidingstar. The guide isn’t finished yet so I haven’t linked it anywhere officially, but once I have users and authentication done, I’ll add it to the Duct README and also add in a repository for the test project.