Unable to replay a simple GET request

I am using the latest Gatling v2.1.7

I created a REST based call using HTTP protocol as shown below.

When I replay the script I am encountering a “java.io.IOException: Remotely closed” exception. I have updated the keystore info in gatling.conf as well. The same request works fine from POSTMAN client.

Script Snippet

class RecordedSimulation extends Simulation {

val httpProtocol = http
.proxy(Proxy("<>", <>))

val headers_4 = Map(“Accept” → “application/json;v=3”)

val headers_5 = Map(“Content-Type” → “application/json;v=3”)

val headers_8 = Map(“Api-Key” → “YYY”)

val scn = scenario(“RecordedSimulation”)


Error Log

Simulation default.RecordedSimulation started…


Could someone help me in understanding what is wrong in this request as I am unable to proceed? I am neither able to record a GET request (Due to Handshake Failure) nor replay one (Due to issue described below).

I have provided my own keystore for recording and replay. It works manually though but not through Gatling.

Please note I am able to record and replay browser based HTTP (GET/POST) requests successfully but not REST call.

Any help would be appreciated.