laptop and a wrench

漏洞

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

上次发布: July 28, 2020 ArcGIS API for Python
漏洞 ID 编号 BUG-000131947
已提交June 30, 2020
上次修改时间June 5, 2024
适用范围ArcGIS API for Python
找到的版本1.7.1
操作系统Windows OS
操作系统版本10.0
状态Non-Reproducible

附加信息

This is not reproducible using the Python API 1.8.1 release.

解决办法

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)

重现步骤

漏洞 ID: BUG-000131947

软件:

  • ArcGIS API for Python

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项