Hello,
I’m trying to send a json data to an API with httpPost but i’m getting this error and didn’t found nothing that could help me:
Traceback (most recent call last):
File "<event:actionPerformed>", line 7, in <module>
IOError: Received fatal alert: handshake_failure
Ignition v7.9.16 (b2020090709)
Java: Oracle Corporation 1.8.0_92
Here is my code:
opPythonDict = {"opNum":123, "product":"teste"}
opstring = system.util.jsonEncode(opPythonDict)
apiKey = "1a2b3c123abc4"
system.net.httpPost(url="https://sgrefratarios.indwise.com/api/integration/op?apiKey="+apiKey, contentType="application/json", postData=opstring)
What am I doing wrong?