Troubleshooting system errors.

Samsara CORE

clj-http error

There is a known error appearing when including [samsara/samsara-client ""] and [samsara/moebius ""]. The incompatibility seems to be between [clj-http "2.0.0"] and [potemkin "0.3.13"] as other people have reported elsewhere.

Caused by: java.lang.NoClassDefFoundError: IllegalName: compile__stub.clj_http.headers.clj-http.headers/HeaderMap
	at java.lang.ClassLoader.preDefineClass(
	at java.lang.ClassLoader.defineClass(
	at java.lang.ClassLoader.defineClass(
	at clojure.lang.DynamicClassLoader.defineClass(
	at clojure.lang.Compiler$NewInstanceExpr.compileStub(
	at clojure.lang.Compiler$
	at clojure.lang.Compiler$NewInstanceExpr$DeftypeParser.parse(
	at clojure.lang.Compiler.analyzeSeq(
	... 155 more


Add an explicit potemkin dependency in your project.clj

(defproject st "0.1.0-SNAPSHOT"
  :description "FIXME: write description"
  :url ""
  :license {:name "Eclipse Public License"
            :url ""}
  :dependencies [[org.clojure/clojure "1.8.0"]
                 [samsara/samsara-client ""]
                 [potemkin "0.4.1"] ;; add potemkin "0.4.1" or newer
                 [samsara/moebius ""]])