laptop and a wrench

Erro

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

Última Publicação: July 28, 2020 ArcGIS API for Python
Número de ID do Erro BUG-000131947
EnviadoJune 30, 2020
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS API for Python
Versão encontrada1.7.1
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0
StatusNon-Reproducible

Informações Adicionais

This is not reproducible using the Python API 1.8.1 release.

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: BUG-000131947

Software:

  • ArcGIS API for Python

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download