d/transact works
fine, but I can’t get d/with
to work, even with an empty transaction:
=> (d/with (d/db conn) {:tx-data []})
ExceptionInfo Datomic Client Exception clojure.core/ex-info (core.clj:4739)
=> (pprint (ex-data *e))
{:cognitect.anomalies/category :cognitect.anomalies/incorrect,
:http-result
{:status 400,
:headers
{"content-length" "220",
"server" "Jetty(9.3.7.v20160115)",
"date" "Tue, 07 May 2019 01:17:01 GMT",
"content-type" "application/transit+msgpack"},
:body nil}}
How do I troubleshoot this?
This is using :server-type :ion
, by the way. See https://github.com/jacobobryant/d-with-error for a MWE.