REST message

asham2
Kilo Contributor

Hi,

I have created a BR for integrating two instance using REST messages, if I create a incident in source   instance incident it should get created in target instance incident, but i got an error like this,

Inserted Incident through REST : 400 {"error":{"detail":"Cannod decode: java.io.StringReader@1e2a587","message":"Exception while reading request"},"status":"failure"}

Can anyone please give me the solution to solve this error?

5 REPLIES 5

Got my answer: Bad Header



I sent a misspelled Content-Type that was causing this. However, ServiceNow REST should not create the record if it is going to return a 400 error.   That's bad juju.



Now it is working.



Thanks,



Marshall Lucas


Sonic Corporation


ServiceNow Architect/Developer