Page redirect - currentLocationRegex() - extraction crashed

Hello All,

I am using the following code to capture the data from the redirected page.

currentLocation().saveAs(“url”), //Works fine
regex(".Open (.) Service").saveAs(“txt”) //Works fine

Getting following exception for currentLocationRegex(), currentLocation() and regex() working as expected.

02:13:49.934 [DEBUG] i.g.h.e.r.DefaultStatsProcessor - Request ‘request_13 Redirect 1’ failed for user 1: currentLocationRegex(.otdstenant.(.).login.*).find.transform.exists extraction crashed: transform crashed: j.l.ClassCastException: class io.gatling.http.response.Response cannot be cast to class java.lang.String (io.gatling.http.response.Response is in unnamed module of loader ‘app’; java.lang.String is in module java.base of loader ‘bootstrap’)

Can anyone suggest what might be the problem?


That’s a bug with the Java DSL, thanks for reporting!