Hi, I have an issue while using Gatling Polling. I’m using Gatling 3.3.0
`
private val pollerTokenRefresh = polling.pollerName("TokenRefresh")
val pollerExec = http("[GET] Refresh Token")
.get("/api/dashboard/v1/token/refresh")
.headers(
Map(
"Accept" -> "application/json, text/plain, */*"
)
)
.check(status.is(200))
val pollerTokenRefreshStart = pollerTokenRefresh.every(5 seconds)
.exec(
pollerExec
)
`
When Polling is sending request to API, there is an empty body in response, which casues an error:
41472 [GatlingSystem-akka.actor.default-dispatcher-5] INFO io.gatling.http.engine.response.DefaultStatsProcessor - Request '[GET] Refresh Token' failed for user 1: i.n.u.IllegalReferenceCountException: refCnt: 0 41472 [GatlingSystem-akka.actor.default-dispatcher-5] ERROR io.gatling.http.response.ByteBufResponseBody - Response body is not valid UTF-8 bytes
But when I do the same request without Polling everything is ok and response has proper body:
body={"status":200,"result":{"token":"eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1NzMxMTk1MDksInVzZXJfaWQiOiJmMDE0MGI2MS1iZTk4LTQwMjktOGNiNS0wZmI1OWEwZTFmNWUifQ.dS9iho4xy0MTkWRMOrMupuxS6lDrrxy5ano37bF4xkw","expiration":299178}}
Did anyone had the same issue with Polling?
Thx, Daniel