AnsweredAssumed Answered

Error: "local variable 'resp' referenced before assignment"

Question asked by mmatsuoka on Nov 9, 2017
Latest reply on Dec 26, 2018 by LeonAus

Just installed ArcGIS API for Python 1.2.4 using ArcGIS Pro. I can connect to my production portal that is using CA certificate without any issues, but cannot connect to my development portal that is using self-signed certificate. Both portals are secured by IWA. I have added verify_cert=False, but I am getting the error: "local variable 'resp' referenced before assignment" from the line below...

gis = GIS(portal_url, verify_cert=False)

How can I make this work?

Thanks

Masao

Outcomes