- 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:29 AM
Hi Charlie,
May I know which API is this. When I did a google search on this it came as Open Street Map API.
Is this a correct one.
From where you received the API endpoint.
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 07:08 AM
The API is our own. My team owns webopstest.osmose.com
We have recently changed that endpoint to return JSON instead of a string, then changed it to have a CORS configuration to allow our service-now instance. Although it doesn't seem like it should need one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:37 AM
Hi Charlie,
I am also getting http error 500 Internal Server Error when I tried to consume it from this website. Hurl.it - Make HTTP requests
screenshot below.
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:43 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 06:47 AM
Hi Neeraj,
It is something to do with HTTP connection manager .
Read here.
ServiceNow KB: Outbound Rest Call randomly gives socket error (KB0546961)
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader