Reg unable to test secure APIs

Dear Team,

I am new to gatling. While exploring the load testing features, I couldn’t solve this problem myself.

Scenario : When I try to test a secure API( the endpoint url starts with https://), I see the below error.

io.netty.channel.ConnectTimeoutException: connection timed out.

Script is here.

class BasicSimulation extends Simulation {

private val httpConf = http
.baseUrl(“https://jsonplaceholder.typicode.com”)
.acceptHeader(" application/json")

private val scn: ScenarioBuilder = scenario(“Initial Scenario”)
.exec(http(“Get all posts”)
.get("/posts")
.proxy(
Proxy(“195.233.25.20”, 8080)
.httpsPort(8143)))

setUp(
scn.inject(atOnceUsers(1))
).protocols(httpConf)

Could someone please help.

Best Regards,
Satyasushma Chopparapu.

Is your proxy working properly? I had similar error when I debug via Fiddler and I forget to start it.

Hi, thanks for responding.

Yes, I believe the proxy is working fine as http ones are working.

Regards,
Satyasushma Chopparapu