Search code examples
javaintellij-ideafiddler

Service calls from Intellij are not routed through Fiddler


I'm going crazy here.

I have a local project setup in intellij that makes many different service calls. All I'm trying to do is route those service calls through Fiddler so that I can see headers/bodies for requests/responses easily.

I've read countless posts saying to set the VM options of the intellij configuration to the Fiddler defaults aka

-DproxySet=true 
-DproxyHost=127.0.0.1 
-DproxyPort=8888

Been there, done that, I've put these arguments is so many different VM option places but nothing seems to work

The Fiddler config settings are all set to default with the only thing I've changed being setting up HTTPS decryption.

The intellij project is Spring Framework running with Maven

I'm fairly new to the Java/Intellij world, but this should be simple. What am I missing, are there any other settings that would step on top of what I'm trying to do?

Edit: Here is the where the code actually makes the service call.

public RxWebTarget getWebTarget(int divisionId) {
    ClientHolder clientHolder = this.clients.get(EnumWarehouse.Division.fromId(divisionId));
    RestClientFactory.JaxRSClientPool bagRestClient = clientHolder.pool;
    RxClient rxClient = bagRestClient.getRxClient(clientHolder.poolName);
    return rxClient.target(bagRestClient.getHostName()).path(bagRestClient.getBasePath());
}

Solution

  • The issue lied within the client we were using to actually make the service call. We were using a JaxRS client. I setup a simple example using an HttpUrlConnection and things worked just fine.