81 views

Description

When an endpoint does not exist, for example the server name does not exist, REST functions Test returns HTTP 500 status code instead of returning not resolved.

HTTP 500 Internal Server Error:  A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

Steps to Reproduce

 

  1. Navigate to Outbound > REST Message
  2. Create a new function and add a URL with a server that it does does not exist
  3. Click Test

You will see the response of HTTP 500

Workaround

Manually execute the script. Using RESTMessageV2 it returns code HTTP 0, instead of HTTP 500.

For example, 

(function() {
    var a = new sn_ws.RESTMessageV2;
    a.setHttpMethod("get");
    a.setEndpoint("http://this-site-does-not-exist.com/x");
    a = a.execute();
    gs.print("status code: " + a.getStatusCode())
})();


Result:

Unknown host
*** Script: status code: 0

 


Related Problem: PRB737653

Seen In

There is no data to report.

Fixed In

Jakarta

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2018-03-27 04:02:42
Published:2017-09-27