<?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 ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1411480#M9896</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I remote into a machine and there is a proxy in use. I cannot access AGOL via the ArcGIS API for Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

agol = GIS("home")
or
agol = GIS(url="", username="", password="")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I consistently get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='xxx.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x000001B61ED92730&amp;gt;: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, I can access just fine without the proxy from my laptop, but I must complete work on the remote machine that has the proxy. So accessing AGOL is not the issue, it is overcoming the proxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2024 12:02:03 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2024-04-18T12:02:03Z</dc:date>
    <item>
      <title>ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1411480#M9896</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I remote into a machine and there is a proxy in use. I cannot access AGOL via the ArcGIS API for Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis.gis import GIS

agol = GIS("home")
or
agol = GIS(url="", username="", password="")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I consistently get the following error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;ConnectionError: A connection error has occurred: HTTPSConnectionPool(host='xxx.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/portals/self (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x000001B61ED92730&amp;gt;: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note, I can access just fine without the proxy from my laptop, but I must complete work on the remote machine that has the proxy. So accessing AGOL is not the issue, it is overcoming the proxy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any ideas?&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 12:02:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1411480#M9896</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-18T12:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1411669#M9897</link>
      <description>&lt;P&gt;Hey, have you tried using the proxy parameter? I've heard mixed reviews, but hopefully your proxy is more forgiving:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;# Usage Exmaple 9: Using a Proxy&lt;/SPAN&gt;
&lt;SPAN class=""&gt;proxy&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;{&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;'http'&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;'http://10.10.1.10:3128'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;
    &lt;SPAN class=""&gt;'https'&lt;/SPAN&gt;&lt;SPAN class=""&gt;:&lt;/SPAN&gt; &lt;SPAN class=""&gt;'http://10.10.1.10:1080'&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt;
&lt;SPAN class=""&gt;}&lt;/SPAN&gt;
&lt;SPAN class=""&gt;gis&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;GIS&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;proxy&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN class=""&gt;proxy&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2024 14:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1411669#M9897</guid>
      <dc:creator>EarlMedina</dc:creator>
      <dc:date>2024-04-18T14:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412087#M9899</link>
      <description>&lt;P&gt;I recently had to downgrade the urllib3 package to get my ArcGIS Python API to work correctly. Did you update your Python env recently?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 03:28:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412087#M9899</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2024-04-19T03:28:05Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412129#M9900</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/86309"&gt;@EarlMedina&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excellent, this approach worked. Here's what I was given, this failed to connect.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;proxy = {
    "http" : "http://**.***.*.**:XXXX"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;This worked when I added the same information for the https key.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;proxy = {
    "http" : "http://**.***.*.**:XXXX",
    "https" : "http://**.***.*.**:XXXX"
}

agol = GIS("home", proxy=proxy)&lt;/LI-CODE&gt;&lt;P&gt;Thanks you!&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 08:46:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412129#M9900</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-19T08:46:55Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412131#M9901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It was not a recent upgrade, but thank you for your response. This is great to know and I will keep an eye out for this when upgrades happen. Earls solution above worked after testing dictionary configs.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 08:48:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1412131#M9901</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2024-04-19T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: ConnectionError - Overcoming proxy to access ArcGIS Online via the ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1599226#M11256</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/363906"&gt;@jcarlson&lt;/a&gt;thanks for pointing this out. I'm building a new 11.4 replacement for a 10.9.1 environment and wrote a small script to find all items shared to a group in the old portal and share those same layers (by name) in a group in the new portal. I wrote the script in the 10.9.1 environment and it connects to both portals fine. When I copied that script to the 11.4 environment and tried running, it wouldn't connect to the 10.9.1 portal. This is likely why.&lt;/P&gt;&lt;P&gt;- Jack C.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 21:57:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connectionerror-overcoming-proxy-to-access-arcgis/m-p/1599226#M11256</guid>
      <dc:creator>__JackCharde__</dc:creator>
      <dc:date>2025-03-25T21:57:13Z</dc:date>
    </item>
  </channel>
</rss>

