Fork me on GitHub
#cider
<
2019-12-10
>
manuel07:12:30

Superb, thank you!

mikerod16:12:50

Found a similar slurp middleware in cider-nrepl issue to <https://github.com/clojure-emacs/cider-nrepl/issues/534>

(URL. "<http://www.admin.ch/ch/e/rs/c221_302.html>")

mikerod16:12:53

causes NPE

mikerod16:12:22

One of these style:

ERROR: Unhandled REPL handler exception processing message {:op slurp, :url , :session <id>, :id <id>}

mikerod16:12:50

with relevant stack being:

java.lang.NullPointerException
	at java.util.regex.Matcher.getTextLength(Matcher.java:1283)
	at java.util.regex.Matcher.reset(Matcher.java:309)
	at java.util.regex.Matcher.<init>(Matcher.java:229)
	at java.util.regex.Pattern.matcher(Pattern.java:1093)
	at clojure.core$re_matcher.invokeStatic(core.clj:4856)
	at clojure.core$re_find.invokeStatic(core.clj:4898)
	at clojure.core$re_find.invoke(core.clj:4898)
	at cider.nrepl.middleware.slurp$normalize_content_type.invokeStatic(slurp.clj:46)
	at cider.nrepl.middleware.slurp$normalize_content_type.invoke(slurp.clj:41)
	at cider.nrepl.middleware.slurp$slurp_url_to_content_PLUS_body.invokeStatic(slurp.clj:95)
	at 

mikerod16:12:04

so again, it seems like perhaps a nil is coming to this content-type matching fn

mikerod16:12:31

wondering if this is something that has some info out there already or not? Or do I need to add to that issue above or new one?