Hi All,
I am having issues with HttpClient.Get().
I have been getting some values from an API. The following script worked consistently for the last 9 months:
def getData(accessToken):
headers={"Authorization":accessToken}
url=system.tag.getTagValue('[Humerd]LoadFlex/Credentials/ForecastURL')
client=system.net.httpClient()
response = client.get(url=url, headers=headers)
Some changes were made on the API and now the same script doesn't work.
I get a huge list of errors. These ones stood out:
java.io.IOException: java.io.IOException: Unable to GET https://**********************/forecastdata
Caused by: javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake
On my test laptop the same script works fine. What's going on here? Has anyone come across this?
I tried setting the http client to http_1_1 as well. Didn't work. It seems the API doesn't like something in our request and shuts down the connection.
I can provide my full script if necessary.
Thank you all.
Best Regards,
Sasi