Fork me on GitHub
#datomic
<
2022-08-04
>
FiVo14:08:40

Hey, I am getting the following error with the client-pro library.

clojure.lang.ExceptionInfo: with db is no longer available
	at datomic.client.api.async$ares.invokeStatic(async.clj:58)
	at datomic.client.api.async$ares.invoke(async.clj:54)
	at datomic.client.api.sync$eval2405$fn__2418.invoke(sync.clj:120)
	at datomic.client.api.protocols$fn__11953$G__11871__11960.invoke(protocols.clj:126)
	at datomic.client.api$with.invokeStatic(api.clj:363)
	at datomic.client.api$with.invoke(api.clj:353)
the docs don't mention anything about it being deprecated. https://docs.datomic.com/client-api/datomic.client.api.html#var-with

favila14:08:58

I think that literally means “the with-db object isn’t on the server anymore”

Joe Lane14:08:15

@UL638RXE2 Francis is right ^^

FiVo14:08:17

Ok, that makes more sense as well.

FiVo14:08:49

So how do I avoid this behaviour ?

FiVo14:08:56

It's actually not quite clear to me how this can happen.