<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Unable to Connect to AGOL in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1496339#M10228</link>
    <description>&lt;P&gt;I have a python script that connects to&amp;nbsp;"&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;".&amp;nbsp; Up until last week was working fine.&amp;nbsp; I was just using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gis = GIS("&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;", username, password)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now when I run my script I get the following errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Create GIS object
print("Connecting to AGOL")
gis = GIS("https://www.arcgis.com", username, password)
Connecting to AGOL
Traceback (most recent call last):
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  [Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  [Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 3, in &amp;lt;module&amp;gt;
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\__init__.py", line 637, in __init__
    raise e
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\__init__.py", line 576, in __init__
    self._portal = _portalpy.Portal(
                   ^^^^^^^^^^^^^^^^^
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 237, in __init__
    self.get_properties(True)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 1312, in get_properties
    raise e
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 1292, in get_properties
    resp = self.con.post(path, self._postdata(), ssl=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1517, in post
    raise Exception("A general error occurred: %s" % e)
Exception: A general error occurred: maximum recursion depth exceeded while calling a Python object&lt;/LI-CODE&gt;&lt;P&gt;I'm not entirely sure what could have changed that I now get this error.&lt;/P&gt;&lt;P&gt;Any suggestion would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Sun, 23 Jun 2024 15:09:21 GMT</pubDate>
    <dc:creator>DJB</dc:creator>
    <dc:date>2024-06-23T15:09:21Z</dc:date>
    <item>
      <title>Unable to Connect to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1496339#M10228</link>
      <description>&lt;P&gt;I have a python script that connects to&amp;nbsp;"&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;".&amp;nbsp; Up until last week was working fine.&amp;nbsp; I was just using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gis = GIS("&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;", username, password)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Now when I run my script I get the following errors.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Create GIS object
print("Connecting to AGOL")
gis = GIS("https://www.arcgis.com", username, password)
Connecting to AGOL
Traceback (most recent call last):
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  [Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\ssl.py", line 742, in verify_mode
    super(SSLContext, SSLContext).verify_mode.__set__(self, value)
  [Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded while calling a Python object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "&amp;lt;string&amp;gt;", line 3, in &amp;lt;module&amp;gt;
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\__init__.py", line 637, in __init__
    raise e
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\__init__.py", line 576, in __init__
    self._portal = _portalpy.Portal(
                   ^^^^^^^^^^^^^^^^^
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 237, in __init__
    self.get_properties(True)
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 1312, in get_properties
    raise e
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 1292, in get_properties
    resp = self.con.post(path, self._postdata(), ssl=True)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\MyName\AppData\Local\ESRI\conda\envs\arcgispro-py3-clone\Lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 1517, in post
    raise Exception("A general error occurred: %s" % e)
Exception: A general error occurred: maximum recursion depth exceeded while calling a Python object&lt;/LI-CODE&gt;&lt;P&gt;I'm not entirely sure what could have changed that I now get this error.&lt;/P&gt;&lt;P&gt;Any suggestion would be greatly appreciated.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 23 Jun 2024 15:09:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1496339#M10228</guid>
      <dc:creator>DJB</dc:creator>
      <dc:date>2024-06-23T15:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1497971#M10258</link>
      <description>&lt;P&gt;Tagging to say I am receiving the same issue&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2024 00:03:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1497971#M10258</guid>
      <dc:creator>ericsamson_tract</dc:creator>
      <dc:date>2024-06-27T00:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503136#M10320</link>
      <description>&lt;P&gt;No solution. I am receiving the same error message. I have tried the following:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;GIS&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;AGOL&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;user&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;password&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;gis = GIS('pro')&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Typically, GIS('pro') works without errors, but since yesterday I cannot get any combination to work.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Jul 2024 18:03:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503136#M10320</guid>
      <dc:creator>MarinaEllen7</dc:creator>
      <dc:date>2024-07-10T18:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503332#M10323</link>
      <description>&lt;P&gt;Try this - worked for me:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/connection-to-agol-exception/m-p/1500079/highlight/true#M10275" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/connection-to-agol-exception/m-p/1500079/highlight/true#M10275&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 23:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503332#M10323</guid>
      <dc:creator>BBurkholder</dc:creator>
      <dc:date>2024-07-09T23:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Connect to AGOL</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503726#M10332</link>
      <description>&lt;P&gt;This worked for me. Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jul 2024 18:02:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-connect-to-agol/m-p/1503726#M10332</guid>
      <dc:creator>MarinaEllen7</dc:creator>
      <dc:date>2024-07-10T18:02:26Z</dc:date>
    </item>
  </channel>
</rss>

