<?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: Error: &amp;quot;local variable 'resp' referenced before assignment&amp;quot; in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804280#M2197</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the thread Leon mentions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/209433"&gt;https://community.esri.com/thread/209433&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 18:41:12 GMT</pubDate>
    <dc:creator>AndresCastillo</dc:creator>
    <dc:date>2020-06-22T18:41:12Z</dc:date>
    <item>
      <title>Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804275#M2192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just installed ArcGIS API for Python 1.2.4 using ArcGIS Pro. I can connect to my production portal that is using CA certificate without any issues, but cannot connect to my development portal that is using self-signed certificate. Both portals are secured by IWA. I have added verify_cert=False, but I am getting the error: "local variable 'resp' referenced before assignment" from the line below...&lt;/P&gt;&lt;P&gt;gis = GIS(portal_url, verify_cert=False)&lt;/P&gt;&lt;P&gt;How can I make this work?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Masao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Nov 2017 17:43:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804275#M2192</guid>
      <dc:creator>MasaoMatsuoka</dc:creator>
      <dc:date>2017-11-09T17:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804276#M2193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're looking into this issue. Meanwhile, as a workaround till we have a fix, you may use the following code to bypass certificate verification completely in the Python process:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;import ssl&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;ssl._create_default_https_context = ssl._create_unverified_context&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt;from arcgis import GIS&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&lt;SPAN&gt;gis = GIS('&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fyoururl.com%2Fportal" rel="nofollow" target="_blank"&gt;https://yoururl.com/portal&lt;/A&gt;&lt;SPAN&gt;', verify_cert=False)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please&amp;nbsp;note that this is not for use in production environment, as it bypasses certificate verification in the entire Python process, not just to your portal which is using a self signed certificate.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Nov 2017 17:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804276#M2193</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-11-10T17:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804277#M2194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help I have added the code, and now I am getting a different error...&lt;/P&gt;&lt;P&gt;10061, 'No connection could be made because the target machine actively refused it'&lt;/P&gt;&lt;P&gt;I can still connect to the production site with CA certificate, but not able to connect to the dev site with self-signed certificate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 17:37:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804277#M2194</guid>
      <dc:creator>MasaoMatsuoka</dc:creator>
      <dc:date>2017-11-13T17:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804278#M2195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rohit, any update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2018 21:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804278#M2195</guid>
      <dc:creator>jiaweixiao</dc:creator>
      <dc:date>2018-08-02T21:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804279#M2196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I&amp;nbsp;was also getting this problem with arcgis python v1.5.1,&amp;nbsp;installing winKerberos&amp;nbsp;as per 209433 thread fixed it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2018 04:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804279#M2196</guid>
      <dc:creator>LeonAus</dc:creator>
      <dc:date>2018-12-27T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: "local variable 'resp' referenced before assignment"</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804280#M2197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the thread Leon mentions:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/209433"&gt;https://community.esri.com/thread/209433&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 18:41:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/error-quot-local-variable-resp-referenced-before/m-p/804280#M2197</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2020-06-22T18:41:12Z</dc:date>
    </item>
  </channel>
</rss>

