laptop and a wrench

Error

When trying to return the properties for a server called using the get() method in ArcGIS API for Python, the following error message is returned, "TypeError: get() got an unexpected keyword argument 'postdata'."

Última publicación: July 28, 2020 ArcGIS API for Python
Número de ID del error BUG-000131947
EnviadoJune 30, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS API for Python
Versión encontrada1.7.1
Sistema operativoWindows OS
Versión de sistema operativo10.0
EstadoNon-Reproducible

Información adicional

This is not reproducible using the Python API 1.8.1 release.

Solución alternativa

Edit the _system.py file within the default directory ‘C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\Lib\site-packages\arcgis\gis\server\admin’.

Change line 185 from ‘postdata=params’ to ‘params=params’.

Run this alternate code:

from arcgis.gis import GIS

gis = GIS("Pro")

gis_servers = gis.admin.servers.list()

server = gis_servers[0]

license_feature = server.system.licenses['features']

print(license_feature)

Pasos para reproducir

ID del error: BUG-000131947

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