ryrobes / flowmaps

Construct & orchestrate stand-alone Clojure core.async pipelines with ease or use it to encapsulate & manage complex 'flows' within your application
Eclipse Public License 2.0
124 stars 7 forks source link

Can't connect to Rabbit web server #2

Open edenworky opened 7 months ago

edenworky commented 7 months ago

I install the dependencies and run it like so in the repl:

(require '[flowmaps.web :as fweb])
(fweb/start!)

It prints [:*web "starting flowmaps web ui debugger @ http://localhost:8080" "🐇"] and returns true, and I can see the java process listening on :8080, but when I try to access the server by visiting http://localhost:8080 the jetty server responds with:

Content-Type    application/json
Date    Fri, 09 Feb 2024 19:35:25 GMT
Server  Jetty(8.1.14.v20131031)
Transfer-Encoding   chunked

With JSON content:

{"error":"null for uri: http:\/\/localhost:8080\/"}

Not sure if I'm doing anything wrong here, I'm a bit new to Clojure. My project uses ring with no problems, so it's not some weird environmental java<->local_network jank.

(By the way, apparently the server process listening on :8080 doesn't shut down when I kill the repl with Ctrl+D, not sure if that's related)

edenworky commented 7 months ago

Hm the plot thickens. I looked through the code a bit, and noticed localhost:3000 also being used. I visited that and I found the following error: image

edenworky commented 7 months ago

(I was using Clojure 1.11.1, but downgrading it to 1.10.3 as used in this project made no discernible difference.)

edenworky commented 7 months ago

Downgrading to [com.ryrobes/flowmaps "0.2-SNAPSHOT"] seems to work as expected, though my flow errors out (but I think that might be my fault).