Hello:
I created a workspace with a python caller to access a Zoom api endpoint. I copied the same python code from Zoom's code generator and the code runs fine. I copy the same code into a python caller and I receive the following errors. I have no proxy I am going through. I have very limited python experience. Any help would be appreciated.
Errors:
Python Exception <SSLCertVerificationError>: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1076)
Error executing string `import<space>http.client<lf>import<space>fme<lf>import<space>fmeobjects<lf>#<space>Template...
Factory proxy not initialized
PythonCaller (PythonFactory): PythonFactory failed to process feature
Code:
import http.client
import fme
import fmeobjects
# Template Function interface:
# When using this function, make sure its name is set as the value of
# the 'Class or Function to Process Features' transformer parameter
def processFeature(feature):
pass
# Template Class Interface:
# When using this class, make sure its name is set as the value of
# the 'Class or Function to Process Features' transformer parameter
class FeatureProcessor(object):
def __init__(self):
pass
def input(self,feature):
self.pyoutput(feature)
def close(self):
pass
conn = http.client.HTTPSConnection("api.zoom.us")
headers = { 'authorization' : "Bearer esome value]" }
conn.request("GET", "/v2/users?page_number=1&page_size=30&status=active", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))