This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-23
Channels
- # beginners (114)
- # cljsrn (19)
- # clojure (35)
- # clojure-austin (1)
- # clojure-italy (9)
- # clojure-russia (8)
- # clojure-spec (6)
- # clojure-uk (5)
- # clojurescript (32)
- # datomic (12)
- # editors (3)
- # emacs (1)
- # hoplon (4)
- # jobs (6)
- # jobs-discuss (1)
- # luminus (2)
- # onyx (11)
- # parinfer (2)
- # portkey (6)
- # re-frame (7)
- # reagent (9)
- # remote-jobs (3)
- # schema (2)
- # shadow-cljs (23)
- # spacemacs (2)
- # specter (13)
- # vim (3)
- # yada (6)
So I’m trying to set up a trivial case where I follow the Connect to a Database
documentation, but in a REPL with some of my own code wrapping the client connection. I have a local server serving up an in-memory DB at hello
just as the documentation specifies, but when I invoke client/connect
with an apparently-correct connection map, what comes down the <!!
is not a connection, but rather this:
#:cognitect.anomalies{:category :cognitect.anomalies/incorrect, :message "Incomplete or invalid connection config: {:timeout 60000, :account-id datomic.client/PRO_ACCOUNT, :access-key \"myaccesskey\", :secret \"mysecret\", :endpoint \"localhost:8998\", :service \"peer-server\", :region \"none\", :db-name \"hello\"}"}
And I cannot tell what is “Incomplete or invalid” about that map, it seems to me to be exactly what I would submit at the command line
Has anyone else encountered a similar problem and uh, solved it? 😇
For people following along at home, the issue is that I was reading the config out of an EDN file, and therefore datomic.client/PRO_ACCOUNT
was not being interpolated to its string value when passed in to datomic.client/connect
I have entities that have tags... How can I pull all entities that have at least one tag from a collection of tags that the user specifies?