2

I'm using JMeter with my project jar and trying to open the browser with browsermob-proxy, but it shows ERR_PROXY_CONNECTION_FAILED with my VPN connected on MAC.

Error Screenshot

 proxy = new BrowserMobProxyServer();
            proxy.setTrustAllServers(true);
            proxy.start();
            options.setCapability("proxy", ClientUtil.createSeleniumProxy(proxy));
            proxy.enableHarCaptureTypes(CaptureType.REQUEST_CONTENT, CaptureType.RESPONSE_CONTENT);

NOTE-

Mac: I'm only facing this issue when my VPN is connected, otherwise, it works fine.

Windows: Everything is working fine with VPN connected or not.

Hasitha Jayawardana
  • 2,326
  • 4
  • 18
  • 36
josh
  • 79
  • 12

1 Answers1

0

Add proxy.setTrustAllServers(true); Before you start your proxy server. This will solve your problem.

Tank
  • 19
  • 3