laptop and a wrench

Bug

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

Zuletzt veröffentlicht: July 28, 2020 ArcGIS API for Python
Bug-ID-Nummer BUG-000131947
EingereichtJune 30, 2020
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS API for Python
Gefunden in Version1.7.1
BetriebssystemWindows OS
Betriebssystemversion10.0
StatusNon-Reproducible

Zusätzliche Informationen

This is not reproducible using the Python API 1.8.1 release.

Workaround

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)

Schritte zur Reproduzierung

Bug-ID: BUG-000131947

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