Facing issue to run the script in gatling, while running fine in intellij IDE

Hi All,

Good morning,
I wrote my complete script in intelliJ IDE and good to execute from there .PFB

2020-04-28 10:11:15 18s elapsed
---- Requests ------------------------------------------------------------------

Global (OK=5 KO=0 )
Products (OK=5 KO=0 )

but when I am tring same script to run from gatling (gatling-charts-highcharts-bundle-2.3.1), getting below Error:

10:29:15.120 [ERROR] i.g.c.ZincCompiler$ - /usr/local/gatling-charts-highcharts-bundle-2.3.1/user-files/simulations/computerdatabase/Products.scala:22: value asJson is not a member of io.gatling.http.request.builder.HttpRequestBuilder
10:29:15.121 [ERROR] i.g.c.ZincCompiler$ - .body(ElFileBody(“bodies/Products.json”)).asJson

PLease suggest me , what I am missing .
Help is greatly appriciated…!!!

Your bundle is using Gatling 2 which is dead for more than 1 year.
You need the Gatling 3 bundle.

Thanks for confirmation Stephane, Sure I will use gatling 3.