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

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

Unable get data from third party web service

effpt3
12-Amethyst

Unable get data from third party web service

Hi,

    I'm trying to get data from weather web API.

var params = {
//proxyScheme: undefined /* STRING */,
//headers: undefined /* JSON */,
ignoreSSLErrors: true/* BOOLEAN */,
//useNTLM: undefined /* BOOLEAN */,
//workstation: undefined /* STRING */,
//useProxy: undefined /* BOOLEAN */,
//withCookies: undefined /* BOOLEAN */,
//proxyHost: undefined /* STRING */,
url: "https://api.openweathermap.org/data/2.5/weather?lat=16.4974&lon=80.6458&appid=appid", /* STRING */
//timeout: undefined /* NUMBER */,
//proxyPort: undefined /* INTEGER */,
password: "password" /* STRING */,
//domain: undefined /* STRING */,
username: "username" /* STRING */
};

// result: JSON
var myJson = Resources["ContentLoaderFunctions"].GetJSON(params);
result = myJson;
//me.Outside_Temperature= myJson.main.temp-273.15;
//me.Outside_Humidity = myJson.main.humidity;

It is giving output as below

[message: Execution error in service script [OutSideTemp] :: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target]

 

1 ACCEPTED SOLUTION

Accepted Solutions
Surekha
12-Amethyst
(To:effpt3)

Hi @effpt3 ,

    Please Make sure of internet connectivity.

Regards,

Surekha N.

View solution in original post

1 REPLY 1
Surekha
12-Amethyst
(To:effpt3)

Hi @effpt3 ,

    Please Make sure of internet connectivity.

Regards,

Surekha N.

Top Tags