Skip to main content
1-Visitor
February 15, 2020
Question

ContentLoaderFunctions.GetJSON to access secured resource gives error while Postman runs it smooth.

  • February 15, 2020
  • 1 reply
  • 994 views

Getting:

Error executing service getPeople. Message :: Certificate for <services.odata.org> doesn't match any of the subject alternative names: [*.azurewebsites.net, *.scm.azurewebsites.net, *.azure-mobile.net, *.scm.azure-mobile.net, *.sso.azurewebsites.net] - See Script Error Log for more details.

Postman handles this ok.

 

var headers = { 'Content-Type''application/json'Accept'application/json' };
var params = {
    proxyScheme: undefined /* STRING */,
    headers: headers /* JSON */,
    ignoreSSLErrors: true /* BOOLEAN */,
    useNTLM: undefined /* BOOLEAN */,
    workstation: undefined /* STRING */,
    useProxy: undefined /* BOOLEAN */,
    withCookies: undefined /* BOOLEAN */,
    proxyHost: undefined /* STRING */,
    timeout: undefined /* NUMBER */,
    proxyPort: undefined /* INTEGER */,
    password: undefined /* STRING */,
    domain: undefined /* STRING */,
    username: undefined /* STRING */
};

// result: JSON
var result = Resources["ContentLoaderFunctions"].GetJSON(params);
 
Pls help,
Thanks

1 reply

1-Visitor
February 15, 2020

Strange but it works with Windchill resource secured with selfsigned certificate.

May be something is wrong with this server certificate? it's *.odata.org

Thanks