This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-20
Channels
- # beginners (43)
- # boot (44)
- # chestnut (17)
- # cider (78)
- # cljs-dev (24)
- # cljsrn (16)
- # clojure (84)
- # clojure-dusseldorf (1)
- # clojure-italy (21)
- # clojure-losangeles (2)
- # clojure-russia (140)
- # clojure-sg (2)
- # clojure-spec (8)
- # clojure-uk (16)
- # clojurescript (23)
- # cursive (7)
- # datascript (1)
- # datomic (18)
- # docker (20)
- # ethereum (1)
- # fulcro (16)
- # garden (4)
- # graphql (27)
- # hoplon (9)
- # jobs (4)
- # luminus (34)
- # off-topic (6)
- # om (4)
- # onyx (35)
- # pedestal (3)
- # re-frame (24)
- # ring-swagger (15)
- # rum (6)
- # shadow-cljs (22)
- # spacemacs (8)
- # specter (22)
- # yada (7)
@staypufd I’m trying to quickly add nrepl server to that project.
not that I won’t want to see yours if you don’t but I’m wondering it that may be part of it
Yes, I am using docker on a mac.
ok, well, I’ve duplicated your ‘Exception in thread “main” java.net.SocketException: Protocol family unavailable’
are you using tools.nrepl 0.2.13? because in the changelog it says “start-server now binds to :: by default, and falls back to localhost, avoiding confusion when working in environments that have both IPv4 and IPv6 networking available. (NREPL-83)”
in alpine linux I don’t think ipv6 is enabled by default. in my case I got the socketexception to go away by doing this
(start-server :port 7000 :bind "localhost")
if that works for you, it suggests the part where they say “falls back to localhost” isn’t actually happening.
I mean, the socketexception isn’t being caught in tools.nrepl, right, so my hunch is the unhandled exception is why the fallback to “localhost” never occurs.
I suppose the other route would be to enable ipv6 in alpine, but that’s up to you. Either way, would be interested to see if this is your issue.
Correction: to actually connect to the repl I needed to (start-server :port 7000 :bind "0.0.0.0")
changes pushed to github if you want to see https://github.com/gonewest818/benchcurl