laptop and a wrench

Bug

Querying a secured server layer stored in ArcGIS Online fails with the Python API when authenticating with an application client ID.

ArcGIS API for Python
Bug-ID-Nummer BUG-000142478
EingereichtAugust 25, 2021
Zuletzt geändertJuly 18, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.8.5
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusNon-Reproducible

Zusätzliche Informationen

This issue is non-reproducible. If this issue occurs, reach out to Esri Support Services as additional information is needed for further investigation.

Workaround

Use the token to generate a separate connection to GIS. Code to reproduce:

from arcgis import GIS

initialLogin_gis=GIS('https://arcgis.com',client_id='fBno9ebLMTP1VwIJ')

initToken=initialLogin_gis._con.token

gis = GIS(token=initToken,referer="https://www.arcgis.com")

item=gis.content.get('4c4e381d00e048918169a7a412dc5904')

item.layers[0].query()

Schritte zur Reproduzierung

Bug-ID: BUG-000142478

Software:

  • ArcGIS API for Python

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln