hello I have a problem with the Gantling, I’m trying a service that is SSE , and I get this error when I get the Json … (java.nio.charset.MalformedInputException: Input length = 1 )
My code is:
import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class Java extends Simulation {
val sentHeaders = Map(“Content-Type” → “text/event-stream”)
val httpConf = http
.baseURL(“URL”)
.headers(sentHeaders)
val scn = scenario(“Server Sent Event”)
.exec(
sse(“Date”).open(resources)
.check(wsAwait.within(600000).until(1).regex("(.*)")))
.pause(15)
setUp(scn.inject(atOnceUsers(50))).protocols(httpConf)
}
if you could help me, thanks