laptop and a wrench

Bug

In ArcGIS API for Python, using the username and password parameters in the OAuth 2.0 authentication function returns the error: "UnboundLocalError: local variable 'oauth_info' referenced before assignment."

Last Published: June 24, 2020 ArcGIS API for Python
Bug ID Number BUG-000127381
SubmittedDecember 13, 2019
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.7.0
Operating SystemWindows OS
Operating System Version10.0
StatusNon-Reproducible

Additional Information

This issue with authentication was fixed in the ArcGIS API for Python 1.8.0 release.

Workaround

Manually use the workflow listed in theĀ first cell of the documentation, User authentication with OAuth 2.0.

Steps to Reproduce

Bug ID: BUG-000127381

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