laptop and a wrench

Bug

"UnboundLocalError: local variable 'resp' referenced before assignment..." when Logging in to Portal for ArcGIS with the ArcGIS API for Python, when Extended Protection is on, in an IWA Environment.

Last Published: February 24, 2020 ArcGIS API for Python
Bug ID Number BUG-000128804
SubmittedFebruary 19, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.7.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.0.0
StatusFixed

Workaround

  • There's a setting in the IIS where one can turn the extended protection on or off. When this is off, one is able to login to the portal using the ArcGIS API for Python.
  • Go to the portal's web adapter from IIS. Under the advanced settings of the Windows .Authentication. Turn "Extended Protection" Off (IIS > portal web adapter > double click Authentication > Windows Authentication).
  • Turning it off allows one to login, but we are not certain of the implications of the same.

Steps to Reproduce

Bug ID: BUG-000128804

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options