操作方法
运行需要登录 Portal for ArcGIS 的 ArcGIS API for Python 脚本可能会失败并返回以下错误:
Error: json.decoder.JSONDecoderError:Expecting value: line 1 column 1
当尝试使用域名服务器 (DNS) 别名连接到 Portal for ArcGIS 并且门户正在通过 Web 层(IWA 或 SAML)进行身份验证时,会发生此错误。
要解决此问题,请使用完全限定域名 (FQDN) 连接到门户。
gis = GIS("https://<machine.domain.com>:7443/arcgis", "username", "password", verify_cert = False)
Note: For portals authenticating through web-tier authentication, using the FQDN with port 7443 is the only workaround for this issue, and users are unable to use DNS within the script.
文章 ID: 000024610
获取来自 ArcGIS 专家的帮助
下载 Esri 支持应用程序