This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-06
Channels
- # announcements (1)
- # aws (36)
- # babashka (105)
- # beginners (53)
- # calva (27)
- # cider (5)
- # clj-kondo (10)
- # clojure (232)
- # clojure-europe (4)
- # clojure-italy (6)
- # clojure-losangeles (9)
- # clojure-nl (3)
- # clojure-sanfrancisco (3)
- # clojure-uk (124)
- # clojured (3)
- # clojurescript (57)
- # clojutre (1)
- # core-async (9)
- # core-logic (1)
- # cryogen (23)
- # cursive (35)
- # datomic (12)
- # duct (4)
- # events (1)
- # figwheel-main (3)
- # fulcro (9)
- # graalvm (31)
- # jobs (1)
- # jobs-discuss (85)
- # kaocha (11)
- # leiningen (11)
- # luminus (19)
- # malli (47)
- # meander (12)
- # nrepl (8)
- # off-topic (32)
- # pathom (4)
- # pedestal (2)
- # reagent (7)
- # ring-swagger (1)
- # schema (3)
- # sql (5)
- # tools-deps (114)
- # vim (17)
- # xtdb (12)
Aha, trying curl
with POST reveals something.
$ curl -v -d "(+ 1 1)" -H "Content-Type: text/plain"
* Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> POST /repl HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.58.0
> Accept: */*
> Content-Type: text/plain
> Content-Length: 7
>
* upload completely sent off: 7 out of 7 bytes
< HTTP/1.1 403 Forbidden
< Content-Type: text/html
< Server: Aleph/0.4.4
< Connection: Keep-Alive
< Date: Fri, 06 Mar 2020 15:35:21 GMT
< content-length: 35
<
* Connection #0 to host 127.0.0.1 left intact
<h1>Invalid anti-forgery token</h1>
^^ So the error is unique to our tool, and I'll have to figure out how to disable this check.Commenting out one of the relevant lines in the app (for now) I have gotten past that. Now I see a different error that seems legitimately related to Drawbridge.
$ lein repl :connect
Connecting to nREPL at
IllegalArgumentException Cannot open <nil> as a Reader.
(io.clj:288)
(io.clj:288)
(io.clj:69)
(io.clj:102)
(io.clj:86)
drawbridge.client/ring-client-transport/fill--4204 (client.clj:25)
drawbridge.client/ring-client-transport/http--4208 (client.clj:42)
nrepl.transport.FnTransport (transport.clj:41)
nrepl.core/client/this--9259 (core.clj:56)
clojure.core/comp/fn--5792 (core.clj:2569)
clojure.core/comp/fn--5792 (core.clj:2569)
clojure.lang.AFunction$1.doInvoke (AFunction.java:31)
Bye for now!
Probably it’s something to do with the web server that drawbridge starts, not so much with drawbridge itself.
I can try to make a minimal reproduction which is bound to be helpful. Possibly I'll even be able to find the problem. I created a ticket in the issue tracker and will update there with any progress.