REST message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-03-2017 02:07 AM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-04-2018 10:41 AM
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