laptop and a wrench

漏洞

Following the documented Esri example returns the error message, "AttributeError: 'GIS' object has no attribute 'servers'".

上次发布: December 17, 2021 ArcGIS API for Python
漏洞 ID 编号 BUG-000137276
已提交February 5, 2021
上次修改时间June 27, 2025
适用范围ArcGIS API for Python
找到的版本1.8.3
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本2.0.0
状态Fixed

解决办法

Follow instructions instead of the example provided (i.e. use either the get() or list() functions for the module arcgis.gis.server.ServerManager)

  • For example:
    • gis = GIS(profile="your_ent_admin_profile")
    • hosting_server = arcgis.gis.server.ServerManager(gis).get(role="HOSTING_SERVER")
  • Refer to the documentation of the ServerManager module, https://developers.arcgis.com/python/api-reference/arcgis.gis.server.html#arcgis.gis.server.ServerManager

重现步骤

漏洞 ID: BUG-000137276

软件:

  • ArcGIS API for Python

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项