How to trouble shoot the integration issues

Nagesh5
Tera Contributor

Hello Expertise,

 

I have no idea to shoot this question in community or not and I faced one question during one of the interview.

1. if the there is no response body retrieving even though integration connection is successful and how to troubleshoot the issue what is the issues behind of this?

2.Without using HTTP code how we can troubleshoot the issues if integration fails?

 

Thanks,

Nagesh

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Nagesh5 

responses inline

1. if the there is no response body retrieving even though integration connection is successful and how to troubleshoot the issue what is the issues behind of this? - check with 3rd party team regarding this

2.Without using HTTP code how we can troubleshoot the issues if integration fails? - you can print the response body and it probably should tell you the error message if you don't know which http code it is

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Rajesh Chopade1
Mega Sage

hi @Nagesh5 

Above issues might have several potential causes, so you can say - will check bellow points to trouble shoot:

1) no response body 
Verify that the external system (e.g., an API or web service) is working as expected by manually calling the API endpoint with tools like Postman or curl.

The integration might be expecting a certain format (e.g., JSON, XML), but the response is in a different format.

Use the Response Headers in ServiceNow to verify the Content - Type (e.g., application/json , application/xml) and ensure it's what you're expecting.

Use Scripted REST API or IntegrationHub to log the raw response and inspect it.

 

There may be an issue with how ServiceNow is parsing the response. This can occur if the body content is not in the expected structure.

Add logging within your script (e.g. gs.log() ) to inspect the content you're receiving before it's parsed.

 

2) without using HTTP status code

Use logging mechanisms in ServiceNow to capture detailed request and response data. This helps you track what data was sent and what was received.

 

If you're using IntegrationHub or other integration-related tables, check the records created by the integration (e.g. sys_id records of API calls in the Integration History table).

 

Use Postman or curl to manually test the integration. This helps you ensure that the external system is responding properly without ServiceNow in the middle.

 

I hope my answer helps you to resolve your issue, if yes please mark my answer helpful and correct.

thank you

Rajesh