laptop and a wrench

Bug

When trying to run a script that uses server.services, the following message appears: "AttributeError: 'Server' object has no attribute 'services'".

ArcGIS Pro
Bug ID Number BUG-000158667
SubmittedMay 30, 2023
Last ModifiedMarch 19, 2025
Applies toArcGIS Pro
Version found3.1.1
Operating SystemWindows OS
Operating System Version10.0 64 Bit
StatusNon-Reproducible

Additional Information

Ensure the correct admin URL is passed.

Workaround

Ensure the URL is correct. Use either "https://server.domain.com:6443/arcgis/admin" or "https://server.domain.com/webadaptor/admin" from arcgis.gis.server import Server server_admin_url = "https://dev0016752.esri.com" server = Server( url=f"{server_admin_url}:6443/arcgis/admin", tokenurl=f"{server_admin_url}:6443/arcgis/rest/generateToken", username="admin", password="esri.agp", ) services = server.services just_services = services.list() for service in just_services: print(service.properties.serviceName).

Steps to Reproduce

Bug ID: BUG-000158667

Software:

  • ArcGIS Pro

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