laptop and a wrench

Bug

Fails to connect to ArcGIS portal using the ArcGIS API for Python GIS object due to malformed JSON, when OpenID Connect is configured.

ArcGIS Pro
Bug ID Number BUG-000170261
SubmittedAugust 26, 2024
Last ModifiedOctober 2, 2024
Applies toArcGIS Pro
Version found3.3.1
Operating SystemWindows Server
Operating System Version2022
StatusKnown Limit

Additional Information

This form of authentication through the GIS object is not supported.

Workaround

Add 'use_gen_token=True' as an optional parameter to the GIS object. This can force the script to use the token-based authentication instead of OAuth: Refer to the Esri Community post Does disabling 'ArcGIS login' prevent Python from using built-in accounts?.

Steps to Reproduce

Bug ID: BUG-000170261

Software:

  • ArcGIS Pro

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