This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-09
Channels
- # announcements (3)
- # babashka (1)
- # beginners (66)
- # clj-kondo (2)
- # cljdoc (46)
- # cljs-dev (7)
- # clojure (16)
- # clojure-australia (2)
- # clojure-china (1)
- # clojure-europe (3)
- # clojure-hk (1)
- # clojure-japan (1)
- # clojure-korea (1)
- # clojure-my (1)
- # clojure-sg (1)
- # clojure-taiwan (1)
- # clojurescript (4)
- # community-development (53)
- # conjure (6)
- # css (7)
- # cursive (6)
- # datascript (1)
- # datomic (5)
- # exercism (5)
- # graalvm (12)
- # helix (8)
- # jobs-rus (1)
- # kaocha (1)
- # lsp (19)
- # nrepl (1)
- # overtone (2)
- # pedestal (1)
- # polylith (2)
- # portal (2)
- # react (25)
- # reagent (1)
- # shadow-cljs (7)
- # spacemacs (8)
- # vim (9)
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?