nrepl

https://github.com/nrepl/nrepl || https://nrepl.org
2020-03-04T15:30:38.007200Z

I am trying to connect to a new Drawbridge setup, here's what I see.

2020-03-04T15:31:04.007600Z

$ AUTH_USER=myuser AUTH_PASS=mypass lein repl :connect <https://127.0.0.1:8080>
Connecting to nREPL at <https://127.0.0.1:8080>
SSLException Unrecognized SSL message, plaintext connection?
	sun.security.ssl.InputRecord.handleUnknownRecord (InputRecord.java:710)
	sun.security.ssl.InputRecord.read (InputRecord.java:527)
	sun.security.ssl.SSLSocketImpl.readRecord (SSLSocketImpl.java:975)
	sun.security.ssl.SSLSocketImpl.performInitialHandshake (SSLSocketImpl.java:1367)
	sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1395)
	sun.security.ssl.SSLSocketImpl.startHandshake (SSLSocketImpl.java:1379)
	org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket (SSLConnectionSocketFactory.java:396)
	org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket (SSLConnectionSocketFactory.java:355)
	org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect (DefaultHttpClientConnectionOperator.java:142)
	org.apache.http.impl.conn.BasicHttpClientConnectionManager.connect (BasicHttpClientConnectionManager.java:323)
	org.apache.http.impl.execchain.MainClientExec.establishRoute (MainClientExec.java:381)
	org.apache.http.impl.execchain.MainClientExec.execute (MainClientExec.java:237)
Bye for now!

2020-03-04T15:31:26.007900Z

Have also tried with lein repl :connect <https://myuser>:mypass@127.0.0.1:8080/repl

2020-03-04T15:31:32.008100Z

I get the same error

2020-03-04T15:55:59.008600Z

This is on:

$ lein --version
Leiningen 2.9.1 on Java 1.8.0_242 OpenJDK 64-Bit Server VM

2020-03-04T19:16:07.009700Z

are you actually using ssl for 127.0.0.1:8080?

2020-03-04T19:17:46.010600Z

(I just to make sure because using ssl for a local dev server is unusual)

2020-03-04T20:48:42.012Z

@hiredman yes, we are using HTTPS. (I did try with HTTP and that is turned off.) What I want to do is connect to the instance on Heroku, ultimately, and it is definitely using HTTPS across the board.

2020-03-04T20:51:13.013400Z

You should curl whatever url and see what you get

2020-03-04T20:53:22.013600Z

OK