This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-12
Channels
- # aleph (1)
- # announcements (13)
- # asami (4)
- # babashka (47)
- # beginners (22)
- # calva (11)
- # circleci (1)
- # clj-kondo (14)
- # clojure (43)
- # clojure-europe (43)
- # clojure-gamedev (1)
- # clojure-nl (1)
- # clojure-uk (6)
- # clojurescript (13)
- # core-async (5)
- # cursive (8)
- # datomic (20)
- # events (3)
- # fulcro (12)
- # graalvm (1)
- # graphql (4)
- # gratitude (3)
- # java (2)
- # juxt (2)
- # leiningen (12)
- # off-topic (30)
- # pathom (33)
- # pedestal (5)
- # podcasts-discuss (1)
- # polylith (14)
- # rdf (2)
- # re-frame (12)
- # reagent (3)
- # releases (2)
- # shadow-cljs (24)
- # spacemacs (13)
- # sql (2)
- # tools-build (16)
Has anyone seen this error before when creating an Ions client:
{
"Type": "java.lang.AssertionError",
"Message": "Assert failed: cfg",
"At": [
"datomic.cloud.client.local$create_client",
"invokeStatic",
"local.clj",
171
]
}
d/client
is being passed what I think is the correct options, something like:
{
"ServerType": "Ion",
"Region": "region",
"System": "system-name",
"Endpoint": " "
}
☝️ is from CloudWatch logs… the real value is ednHey @U0VP19K6K does your endpoint really have the proxy port? If you're in cloud your ion won't need the proxy port. What version of Datomic Cloud are you using?
I would audit all your ion calls to client and make sure they are all valid. And confirm you don't have dev-local or on-prem api's deployed with your code.
@U1QJACBUM does datomic.cloud.client.local$create_client
seem to imply that dev-local
dep is ending up in the classpath (that final .local
)?
The Cloudformation EndpointAddress
output matches what I posted above, i.e. it includes the port
When you say “don’t have dev-local or on-prem api’s deployed with your code” you mean they’re not included in our deps.edn and are thus not in the classpath on the ion instance then I think I can confirm that they are not. I found a classpath printout in the “IonHttpDirectStarted” event and they do not appear there (though I couldn’t find any client api dep at all though)
@U0VP19K6K sorry! The endpoint should be correct for your version. Can you share your deps.edn?
Also does this error happen when you deploy and get a client, or when you try to get a client after deployed? Can you use the same map to connect locally? Do you get the map from env vars?
Thanks Jaret. If anyone comes across this, it’s addressed here https://docs.datomic.com/cloud/troubleshooting.html#assert-failed
Jo what is a good way to get data from a python program into datomic cloud? The rest api is legacy, right?
you can always deploy a datomic Ion that transacts information, then invoke it from python