Http request-postman 400 error

I am reading a text file in XML form and using it in the body
It Lalitha. I have a FAMILY FUNERA.txt (1.3 KB)
That is the text I put here on the xml body

But I receive this error:


Anyone who can help to suggest maybe what could this syntax be, the text seems line checked for white spaces and all.

@Anelisa_Bolosha1,

400 Error code refers to Bad Request,

How to Fix a 400 Bad Request Error

  1. Double-Check the URL
  2. Clear Browser Cache and Cookies
  3. Turn Off Browser Extensions
  4. Clear DNS Cache
  5. Check if the File Size Exceeds Server Limits

The url works well, it’s working on the other texts that I put there it sends a request well.
In UiPath studio on the http activity that I am using I did not include the cookie as a header, although in postman when I make a request it is generated, but you can please suggest on how to do that.

@Anelisa_Bolosha1,

I would suggest to follow the API provider documentation. There is something missing on not in required format in your request.

Thanks,
Ashok :slight_smile:

Manage to find the solution for this, it was a syntax error on my text for an β€˜&’ sign which I changed to &

and it worked well, if someone has special character on the text like this using xml, then try writing them like this:

  1. < - &lt;
  2. > - &gt;
  3. & - &amp;
  4. ' - &apos;
  5. " - &quot;
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.