laptop and a wrench

Bug

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

Last Published: December 17, 2021 ArcGIS API for Python
Bug ID Number BUG-000137276
SubmittedFebruary 5, 2021
Last ModifiedJune 27, 2025
Applies toArcGIS API for Python
Version found1.8.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed2.0.0
StatusFixed

Workaround

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

Steps to Reproduce

Bug ID: BUG-000137276

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