Outbound HTTP log -1 response status

Chrisdev
Kilo Expert

Hi all, 

 

I have a script include that executes a number of outbound HTTP requests in series. The ServiceNow Outbound HTTP requests log shows "-1" as the response code for one of the requests. I know this request has actually succeeded as the data im expecting is imported into ServiceNow.

 

Has anyone experienced this before? I presume it's just the Outbound HTTP log incorrectly reading the response status (should be 200). Any resolutions so the log shows the correct response status?

 

Maybe something to do with the endpoint not returning JSON?

1 REPLY 1

Chrisdev
Kilo Expert

For anyone else having this issue, I believe the response is taken from an XML field on the ecc_queue response. When this field is not present SNOW will show a -1 status code. You can ecc_queue.list in the main filter navigator, find the response to your request and see this first hand.