pathom 2023-09-29

Jakub Holý (HolyJak) 2023-09-29T19:42:30.457039Z

Hello! I have the problem https://github.com/holyjak/minimalist-fulcro-template-backendless#note-on-alternatives-for-pathom-3-and-fulcro-inspects-index-explorer . In short, if I do not run Pathom Viz, then I get tons of warnings and errors in the Console, such as > WARN [taoensso.sente:1422] - Chsk is closed: will try reconnect attempt > GET http://localhost:8240/chsk?udt=1696016247331&client-id=com.example.pathom%2Fenv&handshake%3F=true net::ERR_CONNECTION_REFUSED ... Is there a way to have com.wsscode.pathom.viz.ws-connector.pathom3/connect-env in place so P. Viz can be connected, but not complain when it does not connect? 🙏

I've had a ton of issues like that as well, I dont know why this log from sente is so persistent, but back them I was unable to find a way to silent them. but in this case, what is trying to connect to pathom viz? its some part of the fulcro inspect integration?

Jakub Holý (HolyJak) 2023-09-29T20:05:58.832019Z

No idea. It is not Fulcro Inspect itself, since I get the same in a browser w/o the plugin. Isn’t it ws-connector itself? I see also this log > com.wsscode.pathom.viz.ws-connector.impl.sente-cljs:66] - Waiting for channel to be ready 1000 and > [com.wsscode.pathom.viz.ws-connector.impl.sente-cljs:79] - Waiting for channel to be ready 1000 Both repeatedly (using com.wsscode/pathom-viz-connector {:mvn/version “2022.02.14”})

but I mean, whats trying to make the connection? isn't something you can just remove?

Jakub Holý (HolyJak) 2023-09-29T20:08:08.869779Z

I have this Pathom env:

(def env
  (-> {:com.wsscode.pathom3.error/lenient-mode? true}
      (p.plugin/register pbip/mutation-resolve-params) ; needed or not?
      (pci/register my-resolvers-and-mutations)
      #_(#(com.wsscode.pathom.viz.ws-connector.pathom3/connect-env % {::pvc/parser-id `env}))))
If I un-comment the last one, I will start getting the errors. So it seems it is pathom ws-conn. itself that is trying to connect out to P. Viz. no?

yeah, but if you are not intending to use it, can't you just remove it? that line is only about getting pathom viz working, I may be missing something here

Jakub Holý (HolyJak) 2023-09-29T20:20:54.531899Z

The thing is that https://github.com/holyjak/minimalist-fulcro-template-backendless is a template for people to use to make their own apps. I want it to be ready for connecting Viz. The question then is what is easier/worse: having to remember to go and un-comment connect-env or getting tons of errors. Perhaps the former is less bad… 😭

maybe include a default logging config that filters it