添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

I have a script i have been using for the past 6 months that connects to AGOL and copies content into my Portal. Today the script is unable to connect to AGOL. The script connects using gis = GIS(url=" https://amica.maps.arcgis.com/home ",username="myUN",password="myPW").

Exception                                 Traceback (most recent call last)
In  [9]:
Line 1:     gis = GIS(url="https://amica.maps.arcgis.com/home",username="myUN",password="myPW")
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\__init__.py, in __init__:
Line 637:   raise e
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\__init__.py, in __init__:
Line 576:   self._portal = _portalpy.Portal(
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\_impl\_portalpy.py, in __init__:
Line 237:   self.get_properties(True)
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\_impl\_portalpy.py, in get_properties:
Line 1312:  raise e
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\_impl\_portalpy.py, in get_properties:
Line 1292:  resp = self.con.post(path, self._postdata(), ssl=True)
File C:\Users\A10713\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone-1\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py, in post:
Line 1517:  raise Exception("A general error occurred: %s" % e)
Exception: A general error occurred: maximum recursion depth exceeded while calling a Python object

When I check in Fiddler I see the following message for the request.

"After the client received notice of the established CONNECT, it failed to send any data."

Any ideas?

Hello,

you can take a look here : https://community.esri.com/t5/arcgis-utility-network-questions/install-untools-breaks-arcgis-gis-con...

I posted there because it was related to Utility Network package installation, but it may be more common.

Problem -> You need requests >=2.30.0,<2.32.0

Solution -> pip install requests==2.31.0 on the cloned environment

Hello,

you can take a look here : https://community.esri.com/t5/arcgis-utility-network-questions/install-untools-breaks-arcgis-gis-con...

I posted there because it was related to Utility Network package installation, but it may be more common.

Problem -> You need requests >=2.30.0,<2.32.0

Solution -> pip install requests==2.31.0 on the cloned environment