<?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 Package urllib3 library issue in ArcGIS Enterprise in the cloud Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286406#M600</link>
    <description>&lt;P&gt;Just popping in to say I am getting this error as well on a new Azure function app I am working on. The specific error I am seeing is below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;System.Private.CoreLib: Exception while executing function: Functions.getPercentages. System.Private.CoreLib: Result: Failure&lt;BR /&gt;Exception: TypeError: __init__() got an unexpected keyword argument 'method_whitelist'&lt;BR /&gt;Stack: File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\dispatcher.py", line 407, in _handle__invocation_request&lt;BR /&gt;call_result = await self._loop.run_in_executor(&lt;BR /&gt;File "C:\Python39\lib\concurrent\futures\thread.py", line 52, in run&lt;BR /&gt;result = self.fn(*self.args, **self.kwargs)&lt;BR /&gt;File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\dispatcher.py", line 649, in _run_sync_func&lt;BR /&gt;return ExtensionManager.get_sync_invocation_wrapper(context,&lt;BR /&gt;File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\extension.py", line 215, in _raw_invocation_wrapper&lt;BR /&gt;result = function(**args)&lt;BR /&gt;File "*****\getPercentages\__init__.py", line 34, in main&lt;BR /&gt;gis = GIS(url, user, pw)&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\__init__.py", line 586, in __init__&lt;BR /&gt;raise e&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\__init__.py", line 525, in __init__&lt;BR /&gt;self._portal = _portalpy.Portal(&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 208, in __init__&lt;BR /&gt;self.con = Connection(&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 353, in __init__&lt;BR /&gt;self._create_session()&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 526, in _create_session&lt;BR /&gt;max_retries=Retry(&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 05 May 2023 21:40:04 GMT</pubDate>
    <dc:creator>RogerAsbury</dc:creator>
    <dc:date>2023-05-05T21:40:04Z</dc:date>
    <item>
      <title>ArcGIS Package urllib3 library issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286090#M599</link>
      <description>&lt;P&gt;I'm recently experiencing issues with the ARCGIS package installed with my azure function. The urllib3 library was updated to version 2.0.2 in May 3 and, since then, the code is unable to log into arcgis using arcgis for python due to the following error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;init() got an unexpected keyword argument 'method_whitelist'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if there is a way to overwrite the library to the last working version (1.26.15), since it is actually installed with the arcgis package itself.&lt;/P&gt;&lt;P&gt;Any guidance will be highly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 13:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286090#M599</guid>
      <dc:creator>jvarasanz</dc:creator>
      <dc:date>2023-05-05T13:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Package urllib3 library issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286406#M600</link>
      <description>&lt;P&gt;Just popping in to say I am getting this error as well on a new Azure function app I am working on. The specific error I am seeing is below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;System.Private.CoreLib: Exception while executing function: Functions.getPercentages. System.Private.CoreLib: Result: Failure&lt;BR /&gt;Exception: TypeError: __init__() got an unexpected keyword argument 'method_whitelist'&lt;BR /&gt;Stack: File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\dispatcher.py", line 407, in _handle__invocation_request&lt;BR /&gt;call_result = await self._loop.run_in_executor(&lt;BR /&gt;File "C:\Python39\lib\concurrent\futures\thread.py", line 52, in run&lt;BR /&gt;result = self.fn(*self.args, **self.kwargs)&lt;BR /&gt;File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\dispatcher.py", line 649, in _run_sync_func&lt;BR /&gt;return ExtensionManager.get_sync_invocation_wrapper(context,&lt;BR /&gt;File "C:\Program Files\Microsoft\Azure Functions Core Tools\workers\python\3.9/WINDOWS/X64\azure_functions_worker\extension.py", line 215, in _raw_invocation_wrapper&lt;BR /&gt;result = function(**args)&lt;BR /&gt;File "*****\getPercentages\__init__.py", line 34, in main&lt;BR /&gt;gis = GIS(url, user, pw)&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\__init__.py", line 586, in __init__&lt;BR /&gt;raise e&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\__init__.py", line 525, in __init__&lt;BR /&gt;self._portal = _portalpy.Portal(&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_portalpy.py", line 208, in __init__&lt;BR /&gt;self.con = Connection(&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 353, in __init__&lt;BR /&gt;self._create_session()&lt;BR /&gt;File "*****\.venv\lib\site-packages\arcgis\gis\_impl\_con\_connection.py", line 526, in _create_session&lt;BR /&gt;max_retries=Retry(&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 05 May 2023 21:40:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286406#M600</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2023-05-05T21:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Package urllib3 library issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286482#M601</link>
      <description>&lt;P&gt;Just in case it works for you too, try adding urllib3==1.26.15 at the end of your requirements. Hopefully the issue with the current library can be fixed to avoid this.&lt;/P&gt;</description>
      <pubDate>Sat, 06 May 2023 18:56:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286482#M601</guid>
      <dc:creator>jvarasanz</dc:creator>
      <dc:date>2023-05-06T18:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Package urllib3 library issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286668#M602</link>
      <description>&lt;P&gt;The following feedback from the Microsoft Support Team confirms the issue:&lt;/P&gt;&lt;P&gt;Thanks for reaching out. It looks like you are experiencing issues with the ArcGIS package installed in your Azure Function due to a recent update to the urllib3 library which is the last version that may not be compatible with the arcgis package.&lt;/P&gt;&lt;P&gt;One possible solution is to pin the version of urllib3 to the last working version (1.26.5) in your Azure Function. You can do this by adding the following line to your requirements.txt file:&lt;/P&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;Copy&lt;/SPAN&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE&gt;urllib3==1.26.5&lt;/PRE&gt;&lt;P&gt;This will ensure that the version of urllib3 used in your Azure Function is the last working version.&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 12:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1286668#M602</guid>
      <dc:creator>jvarasanz</dc:creator>
      <dc:date>2023-05-08T12:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Package urllib3 library issue</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1288055#M603</link>
      <description>&lt;P&gt;I would just like to confirm that both older urllib3 versions (1.26.5 and 1.26.15) that are mentioned here, solved the issue for us. Currently sticking to 1.26.15. Thanks a lot for the info.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 08:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-in-the-cloud-questions/arcgis-package-urllib3-library-issue/m-p/1288055#M603</guid>
      <dc:creator>InfodimGIS</dc:creator>
      <dc:date>2023-05-11T08:20:45Z</dc:date>
    </item>
  </channel>
</rss>

