This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-04-20
Channels
- # announcements (4)
- # babashka (10)
- # beginners (8)
- # calva (13)
- # cherry (20)
- # cider (9)
- # clojure (11)
- # clojure-austin (2)
- # clojure-europe (3)
- # clojure-norway (3)
- # clojurescript (1)
- # datomic (5)
- # dev-tooling (9)
- # fulcro (5)
- # hyperfiddle (5)
- # instaparse (1)
- # lingy (1)
- # malli (21)
- # matrix (1)
- # missionary (9)
- # off-topic (12)
- # releases (2)
- # ring-swagger (8)
- # scittle (9)
- # shadow-cljs (20)
I have a lambda ion that is being invoked by an EventBride Schedule. The lambda is invoked correctly but the ion fails to run. The Cloudwatch log for the lambda shows this error:
Assert failed: (inst? t-last): datomic.ion.lambda.handler.exceptions.Incorrect
clojure.lang.ExceptionInfo: Assert failed: (inst? t-last) {:cognitect.anomalies/category :cognitect.anomalies/incorrect, :cognitect.anomalies/message "Assert failed: (inst? t-last)"}
at datomic.ion.lambda.handler$throw_anomaly.invokeStatic(handler.clj:25)
at datomic.ion.lambda.handler$throw_anomaly.invoke(handler.clj:21)
at datomic.ion.lambda.handler.Handler.on_anomaly(handler.clj:175)
at datomic.ion.lambda.handler.Handler.handle_request(handler.clj:205)
at datomic.ion.lambda.handler$fn__3856$G__3781__3861.invoke(handler.clj:68)
at datomic.ion.lambda.handler$fn__3856$G__3780__3867.invoke(handler.clj:68)
at clojure.lang.Var.invoke(Var.java:399)
at datomic.ion.lambda.handler.Thunk.handleRequest(Thunk.java:35)
Interesting mentions:
• Several different EventBridge schedules with different lambda ion targets work correctly.
• The same configuration of EventBridge schedule and the same Clojure code is deployed to a different AWS account and everything works correctly.
It's as though this particular lambda has some state somewhere that has been corrupted. I've searched on ask.datomic and http://datomic.com but this exception does not seem to have been reported.Hey @U0698L2BU I just searched all our codebases for t-last
, inst? t-last
, and assert.*inst\?.*
and I've come up with nothing.
Do you depend on a library which has this assertion?
Yep, I find that in my codebase. I was confused by the error message since it seemed like my code never gets invoked. Clearly that's not the case. This is going to be a "doh" me problem I can tell.... thanks for setting me straight on a Saturday AM.
@U0CJ19XAM, definitely a me problem. But it would have been useful if that logged exception showed the cause's stacktrace. Not a big deal TBH.