Issue with Redirect for POST Request

Despite enabling “Follow Redirects” in the Object Repository for my POST Request, all I get is a HTML Page with Title “308 Permanent Redirect”, instead of the actual redirection happening, and getting the JSON object that is expected, containing the authorization token.

response = WS.sendRequest(findTestObject(‘GetToken’, [(‘serviceUrl’) : serviceUrl, (‘companyName’) : companyName, (‘password’) : password]))

Everything works nicely on PostMan

Using Katalon 6.3.3

2 Likes

Hi @erik.moderegger,
Please download Katalon Studio latest version and try again.
Regards.

Still get the same issue.
Code is

RequestObject requestObject = new RequestObject(“RequestObject”)
requestObject.setFollowRedirects(true)
requestObject.setRestUrl(serviceUrl)
requestObject.setHttpHeaderProperties(defaultHeaders)
requestObject.setRestRequestMethod(“POST”)
requestObject.setBodyContent(new HttpTextBodyContent(body))

I always get

308 Permanent Redirect

308 Permanent Redirect


nginx/1.17.5

regardless whether I use
requestObject.setFollowRedirects(false)
or
requestObject.setFollowRedirects(or)

Hi @erik.moderegge,
Can you share your REST URL?

Thanks huynguyen

https://emea1.ntag-qa.nxp.com/rsnode/token should redirect to https://emea1.ntag-qa.nxp.com/rs/token
(These are two different application instances on different docker instances).
Note that this is a 308 Redirect, as this is intended to be a POST request.

Hi @erik.moderegger,
The fix for this issue will be released in Katalon Studio 7.1.0.
Regards.