HTTP Polling

Hi,

I tried to follow the documentation (https://gatling.io/docs/2.3/http/polling/) to start polling a REST call and my code is:

exec(
polling
.every(2 seconds)
.exec(http(“Home”)
.get("/iPIM/rest/api/jobhistory/search?running=true")
.headers(rest_headers)
.check(bodyString.saveAs(“restResponse”))
))

but I get an exception that nothing is called during simulation:

Exception in thread “main” java.lang.UnsupportedOperationException: There were no requests sent during the simulation, reports won’t be generated

Any ideas?

Thanks