Hello Everyone,
I am facing the same issue which is given on this mail chain.
My simulation is something like below -
login(lrs_login_url, lrs_auth_token_url, credentials_file, rememberMe)
.exec(
ws("Open Websocket").open("open")
).pause(1)
.exec(
ws("Connect to Websocket")
.sendText(session => "connect").check(wsListen.within(30).until(1).regex("""CONNECTED"""))
).pause(1)
.exec(
ws("Subscribe")
.sendText(session => "subscribe")
)
.exec(BookingHelper.getSpaceGuid(lrs_query_space_guid)).foreach("${SpaceGuid}", Constants.SPACE_GUID) {
exec(BookingHelper.getWaitlist(lrs_get_waitlist1, lrs_get_waitlist2))
.exec(BookingHelper.getAllBookings(lrs_get_bookings1, lrs_get_bookings2))
.foreach("${bookingidlist}", Constants.BOOKING_ID) {
pause(30).
exec(http(Constants.NOTIFY_ALL_BOOKING)
.post(StringBody(lrs_notify_bookings1 + "${bookingid}"+ lrs_notify_bookings2))
.header(Constants.AUTHORIZATION, """${token_type} ${access_token}""").header(Constants.CONTENT_TYPE, Constants.CONTENT_VALUE).body(StringBody(session => "somebody")).check(status.is(202)))
.exec(ws("Check Websocket")
.check(wsListen.within(60).until(1).regex("""NOTIFIED""")))
}
}
}
When I checked the log file, here is the error -
Get Token 129491809211402198-0 REQUEST Check Websocket 1535439248818 1535439276209 1535439276209 1535439276209 KO Websocket 'gatling.http.webSocket' was unexpectedly closed with status 1006 and message Connection was closed abnormally (that is, with no close frame being sent).
I found below on console -
12:24:36.208 [New I/O worker #14][DEBUG] c.n.h.c.p.n.h.Processor - Channel Closed: [id: 0x3bf1e500, /192.168.2.12:55190 :> devconnect.lrsus.com/35.170.43.64:443] with attribute NettyResponseFuture{currentRetry=2,
isDone=true,
isCancelled=false,
asyncHandler=com.ning.http.client.ws.WebSocketUpgradeHandler@476e929b,
nettyRequest=com.ning.http.client.providers.netty.request.NettyRequest@7f30e4de,
content=NettyWebSocket{channel=[id: 0x3bf1e500, /192.168.2.12:55190 :> devconnect.lrsus.com/35.170.43.64:443]},
uri=wss://devconnect.lrsus.com/gs-guide-websocket/888/0ufnkstq/websocket,
keepAlive=true,
httpHeaders=org.jboss.netty.handler.codec.http.DefaultHttpHeaders@2cc9011,
exEx=null,
redirectCount=0,
timeoutsHolder=null,
inAuth=false,
statusReceived=false,
touch=496358570}
12:24:36.210 [New I/O worker #14][DEBUG] c.n.h.c.p.n.c.ChannelManager - Closing Channel [id: 0x3bf1e500, /192.168.2.12:55190 :> devconnect.lrsus.com/35.170.43.64:443]
12:24:36.211 [GatlingSystem-akka.actor.default-dispatcher-2][DEBUG] i.g.h.a.w.WsActor - Websocket 'gatling.http.webSocket' closed by the server
I tried to change below parameters in Gatling.conf but no luck