Fork me on GitHub
#nrepl
<
2020-03-05
>
Joe Corneli21:03:33

Hey, I think I was wrong about HTTPS on dev!

Joe Corneli21:03:38

I have switched it to HTTP

Joe Corneli21:03:12

Still doesn't seem to work with lein but here is what I get with curl:

$ curl -v 
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to 127.0.0.1 (127.0.0.1) port 8080 (#0)
> GET /repl HTTP/1.1
> Host: 127.0.0.1:8080
> User-Agent: curl/7.58.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Set-Cookie: openmarkets-client-session=dd0c18227184047e7d9dc37a4a3e9b8e69479577471006d5be21803fea5965a3;Path=/;HttpOnly
< Server: Aleph/0.4.4
< Connection: Keep-Alive
< Date: Thu, 05 Mar 2020 21:48:37 GMT
< content-length: 0
< 
* Connection #0 to host 127.0.0.1 left intact

Joe Corneli21:03:25

However lein now reports the following:

$ lein repl :connect 
Connecting to nREPL at 
ExceptionInfo clj-http: status 403 {:cached nil, :request-time 127, :repeatable? false, :protocol-version {:name "HTTP", :major 1, :minor 1}, :streaming? true, :http-client #object[org.apache.http.impl.client.InternalHttpClient 0x4db0ba1c "org.apache.http.impl.client.InternalHttpClient@4db0ba1c"], :chunked? false, :type :clj-http.client/unexceptional-status, :reason-phrase "Forbidden", :headers {"Content-Type" "text/html", "Server" "Aleph/0.4.4", "Connection" "Close", "Date" "Thu, 05 Mar 2020 20:54:24 GMT", "content-length" "35"}, :orig-content-encoding nil, :status 403, :length 35, :body #object[clj_http.core.proxy$.FilterInputStream$ff19274a 0x1578fa9 "clj_http.core.proxy$.FilterInputStream$ff19274a@1578fa9"], :trace-redirects []}
	slingshot.support/stack-trace (support.clj:201)
	clj-http.client/exceptions-response (client.clj:245)
	clj-http.client/exceptions-response (client.clj:236)
	clj-http.client/wrap-exceptions/fn--3699 (client.clj:254)
	clj-http.client/wrap-accept/fn--3945 (client.clj:737)
	clj-http.client/wrap-accept-encoding/fn--3952 (client.clj:759)
	clj-http.client/wrap-content-type/fn--3939 (client.clj:720)
	clj-http.client/wrap-form-params/fn--4048 (client.clj:961)
	clj-http.client/wrap-nested-params/fn--4069 (client.clj:995)
	clj-http.client/wrap-flatten-nested-params/fn--4078 (client.clj:1019)
	clj-http.client/wrap-method/fn--4006 (client.clj:895)
	clj-http.cookies/wrap-cookies/fn--1851 (cookies.clj:131)
Bye for now!