Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Scripted rest api returns null response

lucky6
Tera Contributor

Hello,

Scripted rest api returns null value with 200k status.

I have a data within the interval but still I am getting null value in response. Response time is below 5sec.

Can anyone help me with the possible reasons for this issue.

Thanks in advance..

 

3 REPLIES 3

Sohail Khilji
Kilo Patron

Hi @lucky6 ,

 

The possible issues will be :

1. Limited timeout, see if you can check on the timeout of request.

2. Try to connect with post man to see if you can request response.

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Hi @Sohail Khilji ,

Thanks for your response...here third party is calling the SN API and they are getting response as null with 200 status..when I tried with postman i am getting correct response.

There is no timeout issue.

Any idea why third party is getting null response here.

James Chun
Kilo Patron

Hey @lucky6,

 

What REST API are you invoking?

Is it possible that there are no records to fetch for that particular account?

 

Cheers