Due to disabling of the cookies, the HTTP request activity API call fails with a response as an HTML page.
Error Message: On saving the response in the .html format, below error is thrown.
Root Cause: Due to a lack of enabling the cookies in the API call, this error will occur.
Resolution:
- Request the concerned team to get enable the cookies for the concerned API call. Then pass the cookies as a parameter in the HTTP header to get a valid response.
- Follow the UiPath Forum post Set Cookies For Http Request on how to set the cookies in the HTTP header
- This API call works in the Postman application, because it will pass the cookies in the header as a parameter
- Follow the approach of API Test automation for Postman integration to get a valid response.