Connect a repl to Charles Proxy

126 Views Asked by At

I'm trying to debug my networked application to find out a network bug with one of my requests. Instead of using the command line, as the error happens inside a library, I'd rather use Charles Proxy for it.

My problem is that the connection is done by https and it's not visible as the REPL is not going through the proxy. I have tried to add -Dhttp.proxyHost and -Dhttp.proxyPort as parameters to the run/debug config to no avail.

Other applications are running through the proxy correctly.

What options am I missing?

Error

1

There are 1 best solutions below

0
On BEST ANSWER

It seems the http client library used by twitter-api doesn't honor the JVM http.proxyHost and http.proxyPort properties.

You could try add :proxy {:host "localhost" :port 8888 :protocol :https} as a named parameter to your twitter-api call.