Character encoding inbound REST request

Anthony Okoth
Tera Guru

I am integrating an external monitoring tool to ServiceNow. The tool is able to create and update incidents via REST Explorer API. So far, the interface works as intended, except for character encoding. I have been able to fix the encoding for whenever i send out updates to incidents by adding "Content-Type: application/json; charset=utf-8" in the outbound request's header.

Whenever i receive (create/update incident) requests, encoding fails to work. Does anyone know how i can fix this? The request sender has also included "Content-Type: application/json; charset=utf-8" in the request header, to no avail.

 

Antoine089_0-1716985481202.png

 

1 ACCEPTED SOLUTION

Anthony Okoth
Tera Guru

Finally found a solution for this. The issue was a malformed header on the request from the external monitoring tool. 

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Anthony Okoth 

how there request body looks like?

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

This is the incoming request body:

 

Antoine089_0-1716989750352.png

 

Anthony Okoth
Tera Guru

Finally found a solution for this. The issue was a malformed header on the request from the external monitoring tool. 

Rajkumar_N
Tera Contributor

Hi Anthony,

Can you share the solution for the issue you mentioned. 
need to change the response header.
regards,

raj