Rest message giving "No sensors defined" error with error code 0 while trying to access 3rd party tool

Ravindra Kaja
Tera Expert

I am using REST POST method to send data to 3rd party tool and getting below response when I 'test' it in REST message.

HTTP Status : 201

Error Message : No sensors defined

Error code : 0

Response : empty

But the data is being received in 3rd party tool and record got created. Response that is being sent from 3rd party tool is in the form of headers.

We are not able to access the response data. We even tried by setting "skip_sensor" parameter to "true" but no luck.

Can we get help on this error and how to read response from headers?

3 REPLIES 3

VaranAwesomenow
Mega Sage

You need to create a sensor that will handle the response. you can look at sensors that come OOB, this is only optional.

If you have a script or flow or function to consume the REST API response from midserver and if its being handled then it should be fine.

One way to avoid this is by using Flow designer to make rest calls using REST ACTION step.

I think sensors are designed to react to probe from discovery right. Here we are trying to access 3rd party tool through POST call. In ECC queue we are getting "No sensors defined" error.

 

Ravi9
ServiceNow Employee
ServiceNow Employee

Have you gone through this already ? if yes pls provide more details / screen-grabs of your problem