Gatling Report Error

Hello Team,

I had script created some time back and it was working fine without any issue ,now for few days scripts are running fine and steps are getting 100% passed but in the report for global it showing KO-100%.

Not sure why its showing KO-100% even there is no failure anywhere. Any help is appreciated.

Regards
Santosh

1 Like

As I see you are using older version of Gatling, can you try with newest one? :slight_smile:

Hello GeMi,

Thanks for the update .i am using gatling-charts-highcharts-bundle-3.7.6 as of now.
Regards
Santosh

This is a group, so one single failed request inside makes it fail too.
If you scroll down (your screen capture is truncated), you’ll see some failed requests.

Thanks for update.I cant see any request fail for this group.
please find the full report.

Well, then there isn’t much we can try to guess without you providing a reproducer, as requested here.

And as @GeMi advised, you should upgrade to the latest version.

1 Like

One hypothesis in the dark (without the simulation code):

Is it possible you use session.markAsFailed after a request?

The requests may succeed, but your custom step (exec block) may fail.

Cheers!

1 Like

Hi Team ,

Thanks for the support.I tried to update the script with latest version and also debug the script.I noticed script is passing but for one of the exec block its throwing error as below:
i.g.c.a.b.SessionHookBuilder$$anon$1 - ‘hook-3’ crashed with ‘j.i.IOException: Stream closed’

code block where failing

val adduserpositions=exec(http("009-adduserposition")
    .post("/rest/users/${newUserUUID}/positions")
    .headers(RequestBody.headers)
    .body(StringBody(RequestBody.posbodysingle))
    .resources(
      http("010-viewprofile_position")
        .get("/rest/users/${newUserUUID}?source=viewprofile")
        .headers(RequestBody.headers),
      http("011-assignedpositions")
        .get("/rest/users/${newUserUUID}/positions")
        .headers(RequestBody.headers)
    )
    .check(status.is(200))
    .check(jsonPath("$.responseData.code").saveAs("resstatus"))
    .check(responseTimeInMillis.saveAs("restime")))

Earlier this block was working and now suddenly start giving the error in report.Any help Appreciated.

Thanks
Santosh

Your error has nothing to do with the piece of code you provided.

i.g.c.a.b.SessionHookBuilder$$anon$1 - ‘hook-3’ crashed with ‘j.i.IOException: Stream closed’

SessionHookBuilder is used for exec(function) and foreach loops, which you don’t have in here.

Also, don’t highjack an existing unrelated thread.