This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-21
Channels
- # calva (11)
- # cider (4)
- # clojure (15)
- # clojure-europe (20)
- # clojurescript (14)
- # clr (45)
- # conjure (2)
- # cursive (1)
- # fulcro (10)
- # helix (4)
- # honeysql (7)
- # hoplon (21)
- # humbleui (2)
- # hyperfiddle (23)
- # introduce-yourself (1)
- # malli (11)
- # matrix (3)
- # off-topic (6)
- # pathom (2)
- # practicalli (1)
- # re-frame (9)
- # releases (1)
- # specter (2)
- # sql (10)
- # xtdb (2)
i built a (silly 🙃 ) Electric app - it runs without erros on my machine, but when i deploy it to Fly it gives an error that i have trouble understanding: https://coffee-sign.fly.dev/ (`Reactor failure`) the source code is here: https://github.com/teawaterwire/CoffeeSign/blob/main/src/app/coffee_sign.cljc any idea what it could be? 🙏
Remote error - 1011 Server process crash
There should be something in the server logs
i have it running locally, going to try to rep it locally (TY for github link)
I repped it using the prod build locally
ERROR hyperfiddle.electric-jetty-adapter: Websocket handler failure clojure.lang.ExceptionInfo: Unable to resolve symbol: app.coffee-sign/find-contract
(This will be in your Fly logs)
Bug is this line: https://github.com/teawaterwire/CoffeeSign/blob/a25d526cb59a9076b8bb97741cad59bb3e295d96/src/prod.clj#L3
change to app.coffee-sign
works in dev by accident because in dev, shadow and your app are sharing the same JVM so the app's server side got loaded by shadow
ah amazing! thanks 🙌 i just pushed let's see 🤞
i'm surprised to see that the in-memory db is not reset after redeploying. or it's maybe because i only changed css?
perhaps it was a rolling deploy and you caught an old instance?
What is supposed to happen with db
symbol if you do this?
(e/defn App []
(e/server [db (e/watch data/conn)]
(ui/button
(e/fn []
(e/server
(e/discard
(ds/q db ...) ;; 1. will this db reference work?
(ds/transact! data/conn ...)))))) ;; 2. won't this transact cause the e/fn to be cancelled?
i mean define "work"
it will resolve
*amended by adding transact.
Won’t the e/fn
get cancelled mid-execution because data/conn
has changed, triggering the e/watch?
I am seeing some weird behaviour that I will have to get back to and try replicate. I have to deref data/conn in the button’s e/fn otherwise the db query seems to return empty, but I will have to verify what exactly is going on here.
You're using datascript? The sample app has a working app
I’m using both XTDB and DataScript (for semi-ephemeral things like user selections)