The CreatorCon Call for Content is officially open! Get started here.

Outbound REST Message returns 500

charliesdev
Giga Expert

I have a hosted REST endpoint that can be successfully hit from:

web:   https://webopstest.osmose.com/MgmtToolsApi/api/Authorization/AuthorizationTokenAsJSON/17/serv_utilii...

fiddle: https://jsfiddle.net/48o0xgxq/2/  

and Postman, iPhone, etc

But testing it using a REST Message object always fails with 500.

I see in my server log (on webopstest) that the endpoint is being hit from servicenow and returns 200.

it's a simple 'get' with no authentication.   should just return a string wrapped in a JSON object.

I'm on Istanbul, build 6 I believe.   Oh, also I'm a n00b, so don't assume that I haven't missed something simple.

1 ACCEPTED SOLUTION

mohamadcharafed
ServiceNow Employee
ServiceNow Employee

Hi Charlie,



It looks like your certificate is using SNI which is not supported until Jakarta


If you have a Jakarta instance set 'glide.outbound.tls_sni.enabled' property to true and test your endpoint and it will work. (this property wont work on instances before jakarta)



Cheers


Mohamad


View solution in original post

29 REPLIES 29

Thanks for your input.


Could you explain?


This endpoint takes no parameters, what should I try?


Hi Charlie,



Did you try what Mohamad has mentioned in his comments if you are using Jakarta instance.


I think it is something to do with HTTP Connection Manager because of which it is not working in ServiceNow and the other website Hurl.it - Make HTTP requests   but working in Postman tool.


Check this as well.


ServiceNow KB: Outbound Rest Call randomly gives socket error (KB0546961)



Regards


Ankur


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

Thanks ankur,


I tried applying workaround but   No success!


https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/integrate/web-services/referenc...



These 3 properties i am not able to find in my instance. ! (jakarta)



Thanks


Neeraj


We just rolled out Istanbul and have not scheduled our upgrade to Jakarta yet.


I'm not sure about the certificate, I'm looking in to that as well (we JUST changed the cert type and it will not be easy to have it changed back).


I will read the articles you referenced, thanks for your help.