<?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 Re: ArcGIS Python api SSL error in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077699#M6337</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/501567"&gt;@Mumulin96&lt;/a&gt;, you mention you are connecting to your Enterprise Portal, but you omit the url argument and use profile instead. Is this intentional?&lt;/P&gt;&lt;P&gt;Does the following provide a different error message?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS(url="link to the portal",
    username="username", 
    password="password", 
    verify_cert = False , 
    proxy_host='username:password@proxy_host', 
    proxy_port=proxy_port)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 12 Jul 2021 07:28:10 GMT</pubDate>
    <dc:creator>HamishMorton</dc:creator>
    <dc:date>2021-07-12T07:28:10Z</dc:date>
    <item>
      <title>ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077690#M6336</link>
      <description>&lt;P&gt;&lt;SPAN&gt;For my company's project, i need to use ESRI arcgis python API to access the data in our Enterprise ArcGIS portal. After installing the arcgis library, i did a test of the connection via GIS(). the code looks as below&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;gis = GIS( profile=&lt;SPAN class="hljs-string"&gt;"link to the portal"&lt;/SPAN&gt;,username =&lt;SPAN class="hljs-string"&gt;"username"&lt;/SPAN&gt;,password=&lt;SPAN class="hljs-string"&gt;"password"&lt;/SPAN&gt;,verify_cert = &lt;SPAN class="hljs-literal"&gt;False&lt;/SPAN&gt; ,proxy_host=&lt;SPAN class="hljs-string"&gt;'username:password@proxy_host'&lt;/SPAN&gt;,proxy_port=proxy_port)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But it gives me an error as below&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Please &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; verify_cert=&lt;SPAN class="hljs-literal"&gt;False&lt;/SPAN&gt; due to encountered SSL error: HTTPSConnectionPool(host=&lt;SPAN class="hljs-string"&gt;'www.arcgis.com'&lt;/SPAN&gt;, port=&lt;SPAN class="hljs-number"&gt;443&lt;/SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; Max retries exceeded &lt;SPAN class="hljs-keyword"&gt;with&lt;/SPAN&gt; url: /sharing/rest/generateToken (Caused by SSLError(SSLError(&lt;SPAN class="hljs-number"&gt;1&lt;/SPAN&gt;, &lt;SPAN class="hljs-string"&gt;'[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)'&lt;/SPAN&gt;)))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;The error still exists even though i set&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;verify_cert = False&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Also i tried to set the proxy in the environment beforehand&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;os.environ[&lt;SPAN class="hljs-string"&gt;'https_proxy'&lt;/SPAN&gt;] = &lt;SPAN class="hljs-string"&gt;"http://proxy"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;No luck as well. my openssl version is&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;OpenSSL 1.1.1k 25 Mar 2021&lt;/STRONG&gt;&lt;SPAN&gt;- It's very appreciate if anyone could provide me some solutions&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 06:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077690#M6336</guid>
      <dc:creator>Mumulin96</dc:creator>
      <dc:date>2021-07-12T06:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077699#M6337</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/501567"&gt;@Mumulin96&lt;/a&gt;, you mention you are connecting to your Enterprise Portal, but you omit the url argument and use profile instead. Is this intentional?&lt;/P&gt;&lt;P&gt;Does the following provide a different error message?&lt;/P&gt;&lt;LI-CODE lang="python"&gt;gis = GIS(url="link to the portal",
    username="username", 
    password="password", 
    verify_cert = False , 
    proxy_host='username:password@proxy_host', 
    proxy_port=proxy_port)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 07:28:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077699#M6337</guid>
      <dc:creator>HamishMorton</dc:creator>
      <dc:date>2021-07-12T07:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077700#M6338</link>
      <description>&lt;P&gt;I tried to change but the error still be the same.&lt;/P&gt;&lt;P&gt;even though i tried this&lt;/P&gt;&lt;PRE&gt;gis = GIS( verify_cert = &lt;SPAN class="hljs-literal"&gt;False&lt;/SPAN&gt; ,proxy_host=&lt;SPAN class="hljs-string"&gt;'username:password@proxy_host'&lt;/SPAN&gt;,proxy_port=proxy_port&amp;nbsp;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 07:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077700#M6338</guid>
      <dc:creator>Mumulin96</dc:creator>
      <dc:date>2021-07-12T07:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077701#M6339</link>
      <description>&lt;P&gt;It works after i delete the proxy setting. the code looks as below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;gis = GIS( url=&lt;SPAN class="hljs-string"&gt;"link to the portal"&lt;/SPAN&gt;,username =&lt;SPAN class="hljs-string"&gt;"username"&lt;/SPAN&gt;,password=&lt;SPAN class="hljs-string"&gt;"password"&lt;/SPAN&gt;,verify_cert = &lt;SPAN class="hljs-literal"&gt;False&lt;/SPAN&gt; )&lt;/PRE&gt;&lt;P&gt;Many thanks. It saves my day!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 07:40:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1077701#M6339</guid>
      <dc:creator>Mumulin96</dc:creator>
      <dc:date>2021-07-12T07:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1144715#M7128</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am getting this error with your code&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ConnectionError&lt;/STRONG&gt;: A connection error has occurred: HTTPSConnectionPool(host='myorg.maps.arcgis.com', port=443): Max retries exceeded with url: /sharing/rest/generateToken (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPSConnection object at 0x000001EB4CC5F448&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;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1144715#M7128</guid>
      <dc:creator>anonymous55</dc:creator>
      <dc:date>2022-02-16T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Python api SSL error</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1360758#M9416</link>
      <description>&lt;P&gt;Perfect thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 07:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcgis-python-api-ssl-error/m-p/1360758#M9416</guid>
      <dc:creator>Yogesh_Chavan</dc:creator>
      <dc:date>2023-12-14T07:46:47Z</dc:date>
    </item>
  </channel>
</rss>

