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

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

Highlighted
Garnet

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
Highlighted

Re: ContentLoaderFunctions.GetJSON to access secured resource gives error while Postman runs it smoo

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

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!