ContentLoaderFunctions.GetJSON to access secured resource gives error while Postman runs it smooth.
Feb 15, 2020
05:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 15, 2020
05:05 AM
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
Labels:
- Labels:
-
Troubleshooting
1 REPLY 1
Feb 15, 2020
05:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Feb 15, 2020
05:35 AM
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
