laptop and a wrench

Bogue

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'."

Dernière publication: July 28, 2020 ArcGIS API for Python
Numéro d’ID de bogue BUG-000131947
EnvoiJune 30, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS API for Python
Version trouvée1.7.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutNon-Reproducible

Informations supplémentaires

This is not reproducible using the Python API 1.8.1 release.

Solution de contournement

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)

Étapes pour reproduire

ID de bogue: BUG-000131947

Logiciel:

  • ArcGIS API for Python

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement