Facing with 400 and 401 issues while recording the Scenario in web Applications

I have recorded a scenario that includes logging into our web application and perform a search in the application and tried playing it back with single thread

and I could see the below errors after the login request.

400 - Bad Request

401 - UnAuthorized User issue

It would be grateful for me if someone helps me out in this.

I am currently using Gatling 3.2.0 for the recording.

Hello,

Can you enable the tracing in your logback.xml file to understand if the request contains expected inputs/parameters?

Logback.xml can be found under conf directory.