Getting 400 Bad Request if using variables, but fine with hard coded values

I m able to PUT the HTTP request when i m using had coded values.

But getting 400 Bad request if i m using variable to replace the hard coded value with dynamic value.

Note : For the bad request we are getting below error at the backend

org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

Hi @syerra.sunil,

Welcome to our community. I have found this guide doc on your issue: https://docs.katalon.com/katalon-studio/data-driven-testing/data-driven-testing-with-restful-web-service-requests#create-web-service-request-objects-with-variables. Please take a look

2 Likes

Hi there @syerra.sunil, :wave:

Welcome to our forum.

Please take a look at the documentation that Elly proposed.

If the issue persists, then please feel free to seek out support in our Ask Katalon Anything thread below :point_down: