<?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: Authentication Warning - Unverified HTTPS request is being made to host in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574498#M11037</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/449577"&gt;@tiztrain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a warning currently, and shouldn't prevent you from running queries, I may have missed you saying that though. If you'd like to silence them, you can use the URLLIB library to do something like this here:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import warnings
from urllib3.exceptions import InsecureRequestWarning

warnings.simplefilter("ignore", InsecureRequestWarning)&lt;/LI-CODE&gt;&lt;P&gt;On the end of your GIS connection string you can also try to add verify_cert=True.&lt;/P&gt;&lt;P&gt;I would try reducing the amount of max items as well, could be something happening there.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 20:11:35 GMT</pubDate>
    <dc:creator>CodyPatterson</dc:creator>
    <dc:date>2025-01-10T20:11:35Z</dc:date>
    <item>
      <title>Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574489#M11036</link>
      <description>&lt;P&gt;Hey all,&lt;/P&gt;&lt;P&gt;I am currently working on a Python script and when I authenticate into AGOL I have no issues until I run certain queries and then I get:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;'InsecureRequestWarning: Unverified HTTPS request is being made to host 'PORTALNAME.maps.arcgis.com'. Adding certificate verification is strongly advised.'&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This specifically occurs when I add the max_item parameter in the gis.content.search method.&lt;/P&gt;&lt;P&gt;As an example, if I run the following, I get no warning:&lt;/P&gt;&lt;P&gt;wm_items = gis.content.search(query=query)&lt;/P&gt;&lt;P&gt;If I add that parameter, then the warning appears:&lt;/P&gt;&lt;P&gt;wm_items = gis.content.search(query=query, max_items=10000)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tiztrain_0-1736538889748.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/123136iDAA779D37B610588/image-size/medium?v=v2&amp;amp;px=400" role="button" title="tiztrain_0-1736538889748.png" alt="tiztrain_0-1736538889748.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I authenticated using the GIS(api_key='...', referer='https') method.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:01:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574489#M11036</guid>
      <dc:creator>tiztrain</dc:creator>
      <dc:date>2025-01-10T20:01:40Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574498#M11037</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/449577"&gt;@tiztrain&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just a warning currently, and shouldn't prevent you from running queries, I may have missed you saying that though. If you'd like to silence them, you can use the URLLIB library to do something like this here:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import warnings
from urllib3.exceptions import InsecureRequestWarning

warnings.simplefilter("ignore", InsecureRequestWarning)&lt;/LI-CODE&gt;&lt;P&gt;On the end of your GIS connection string you can also try to add verify_cert=True.&lt;/P&gt;&lt;P&gt;I would try reducing the amount of max items as well, could be something happening there.&lt;/P&gt;&lt;P&gt;Cody&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574498#M11037</guid>
      <dc:creator>CodyPatterson</dc:creator>
      <dc:date>2025-01-10T20:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574514#M11038</link>
      <description>&lt;P&gt;Thanks for getting back to me so quickly&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/712076"&gt;@CodyPatterson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to not have prevented me from doing anything but I am cleaning up my code now and wanted to resolve this issue. I did see that I could hide it but was thinking that this message might be important and thought it was indicating that I was doing something wrong.&lt;/P&gt;&lt;P&gt;I was also wondering if reducing the max_items would fix it but even when I put it to 1, still got the same issue.&lt;/P&gt;&lt;P&gt;Tried auth by using what you suggested. Tell me if I am using it wrong but did the following but unfortunately that did not help:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;GIS(api_key='...', referer='https', verify_cert=True)&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:27:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574514#M11038</guid>
      <dc:creator>tiztrain</dc:creator>
      <dc:date>2025-01-10T20:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574516#M11040</link>
      <description>&lt;P&gt;I am getting these warnings also&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 20:29:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574516#M11040</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2025-01-10T20:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574586#M11041</link>
      <description>&lt;P&gt;There's an issue out for it already:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/2164" target="_blank"&gt;InsecureRequestWarning · Issue #2164 · Esri/arcgis-python-api&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 22:37:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574586#M11041</guid>
      <dc:creator>JordanCarmona</dc:creator>
      <dc:date>2025-01-10T22:37:43Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574614#M11043</link>
      <description>&lt;P&gt;Oh good to know. Will just ignore these for now&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jan 2025 09:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1574614#M11043</guid>
      <dc:creator>tiztrain</dc:creator>
      <dc:date>2025-01-11T09:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1577196#M11072</link>
      <description>&lt;P&gt;But how to ignore them? I mean ingnore in python.&amp;nbsp;I know how to ignore warnings in python, but how for this case?&lt;/P&gt;&lt;P&gt;This&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-python-api/issues/2164" target="_self"&gt;post &lt;/A&gt;&amp;nbsp;user says the same thing, and I ask the say question (but give an example of what I tried).&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 14:34:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1577196#M11072</guid>
      <dc:creator>chris_del101</dc:creator>
      <dc:date>2025-01-20T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication Warning - Unverified HTTPS request is being made to host</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1577375#M11074</link>
      <description>&lt;LI-CODE lang="python"&gt;import warnings
from urllib3.exceptions import InsecureRequestWarning

warnings.simplefilter("ignore", InsecureRequestWarning)
print ('Warnings have been silenced')&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 21 Jan 2025 12:04:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/authentication-warning-unverified-https-request-is/m-p/1577375#M11074</guid>
      <dc:creator>tiztrain</dc:creator>
      <dc:date>2025-01-21T12:04:44Z</dc:date>
    </item>
  </channel>
</rss>

