cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

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

anickolsky
12-Amethyst

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

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

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

Top Tags