- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2017 02:46 PM
I have a hosted REST endpoint that can be successfully hit from:
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:23 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:54 AM
Thanks for your input.
Could you explain?
This endpoint takes no parameters, what should I try?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:56 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:58 AM
Thanks ankur,
I tried applying workaround but No success!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 07:00 AM
These 3 properties i am not able to find in my instance. ! (jakarta)
Thanks
Neeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 07:03 AM
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.