We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Rest Message outbound - final request

PrzemyslawO9402
Tera Contributor

Hi all,

 

    May be one of you have the answer. I try to make GET request with REST Message, as I am struggling with getting valid response from API I am looking for a way to see how exactly looks a full request executed by MID server.

  In ECC queue I see the xml load, that seems to match what it should be.

 

unfortunately the respond is not a expected. 

 

I am sure of connectivity, and provided parameters and headers values, as directly from mid I can execute request with curl and get proper result

 

I hope one can help, thank you in advance

 

4 REPLIES 4

Mark Manders
Giga Patron

What's the issue? You are getting a response that works from the MID? What is the response you expect and what is the actual response? What errors do you see?


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi, 

 

   Issue, the rest request sent from MID seems to differ somehow from what I pass from command line, even if in the theory I pass same end-point and parameters in request.

   I know that there is something wrong as from cmd line in MID I can use curl and get expected outcome, when  for request from MID, I got respond from API with Error message.

 

So I want to see how the actual request performed by MID looks like, to compare it to what is expected.

 

The one I use for test is very simple request, it contains only Authentication Bearer token and one additional parameter which is a digit. 

 

 

 

 

You are still not giving there errors or providing any information, so I suggest to check the logs from the MID to see if they provide you any further guidance.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi,  there is no error as such on MID side. Logs confirm that there is a issue with request. It send request and get respond from API, that the request is wrong. As there is only Token in request, that I am sure is fine, tested separably, I am interested in that I have described.

 

I want to know if there is way to check what exactly has been send.