Fork me on GitHub
#pedestal
<
2022-04-09
>
d16:04:12

Hey, guys 👋 I was trying to run the https://github.com/pedestal/pedestal/tree/master/samples/hello-world with lein run-dev, but requests were throwing an exception:

clojure.lang.ExceptionInfo: java.lang.NullPointerException in Interceptor :io.pedestal.http.route/router - Cannot invoke "java.lang.CharSequence.length()" because "this.text" is null
lein run worked tho. The problem seems to be at this line: https://github.com/pedestal/pedestal/blob/master/samples/hello-world/src/hello_world/server.clj#L32 I had to change this line to ::http/routes #(route/expand-routes (deref #'service/routes)) in order to fix the issue and have an interactive workflow. Am I missing something? Is this a known bug? Should the docs be updated?