laptop and a wrench

Error

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
Número de ID del error BUG-000142478
EnviadoAugust 25, 2021
Última modificaciónJuly 18, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.8.5
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoNon-Reproducible

Información adicional

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

Solución alternativa

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()

Pasos para reproducir

ID del error: BUG-000142478

Software:

  • ArcGIS API for Python

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga