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

Last Published: July 28, 2020 ArcGIS API for Python
Bug ID Number BUG-000131947
SubmittedJune 30, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS API for Python
Version found1.7.1
Operating SystemWindows OS
Operating System Version10.0
StatusNon-Reproducible

Additional Information

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)

Steps to Reproduce

Bug ID: BUG-000131947

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options