- 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-15-2017 05:25 PM
Hi Charlie,
Do you mind sharing the code which invokes the REST End Point?
Thanks
Antin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2017 06:04 AM
My plan is to invoke it from a Scheduled Script Execution, but haven't done that yet.
I'm just testing the Message from the "Test" Related Link.
The endpoint for the Message is
there are no headers defined, and no authentication.
the Method is a 'GET' with the same endpoint. authentication is set to 'inherit' and there is one header:
Accept: application/json
There was a suggestion that it was a CORS issue and there are no CORS Rules defined.
I looked into defining one but I don't see a "REST API" that seems applicable to what I'm doing.
We changed the endpoint on webopstest.osmose.com to have a CORS policy, but it didn't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2017 07:02 PM
Got it.
Is it working when you try 3rd party tools like Soap UI or any other REST Clients?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2017 05:06 AM