<?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: Connection Error - GIS() class in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1233642#M8039</link>
    <description>&lt;P&gt;Tips to fix-&lt;/P&gt;&lt;P&gt;Restart your computer.&lt;BR /&gt;Make sure your wireless adapter is enabled.&lt;BR /&gt;Restart your modem and router.&lt;BR /&gt;Try a hard network reset.&lt;BR /&gt;Move closer to the router.&lt;BR /&gt;Try using Ethernet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
    <pubDate>Mon, 21 Nov 2022 06:03:49 GMT</pubDate>
    <dc:creator>RachelGomez</dc:creator>
    <dc:date>2022-11-21T06:03:49Z</dc:date>
    <item>
      <title>Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179275#M7442</link>
      <description>&lt;P&gt;Hi all. I'm very new to ArcGIS Pro and the ArcGIS API for Python. It says in the documentation that if I install ArcGIS Pro, I don't need any other installations, however, I've been having this connection issue at the very first step:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;from arcgis.gis import GIS&lt;BR /&gt;from arcgis.features import FeatureLayer&lt;BR /&gt;gis = GIS()&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neil_perol_1-1654127122107.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42591i02EBA37964613898/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neil_perol_1-1654127122107.png" alt="neil_perol_1-1654127122107.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyone knows what's happening here and if I need additional installations/environments?&lt;/P&gt;&lt;P&gt;Installed: ArcGIS Pro 2.8, Python 3.7.10, ArcGIS API 1.8.5&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2022 23:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179275#M7442</guid>
      <dc:creator>neil_perol</dc:creator>
      <dc:date>2022-06-01T23:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179277#M7443</link>
      <description>&lt;P&gt;arcgis module is for talking to ArcGIS Online or ArcGIS Enterprise&lt;/P&gt;&lt;P&gt;I always feed it the URL of my server, like this for example&lt;/P&gt;&lt;P&gt;gis = GIS(url="&lt;A href="https://myserver/portal" target="_blank" rel="noopener"&gt;https://myserver/portal&lt;/A&gt;", user="rocky", password="flyingsquirrel")&lt;/P&gt;&lt;P&gt;In theory there are defaults, but they don't work for me. You probably have to be running from inside ArcGIS Pro or something and I never am. I work in Visual Studio Code all the time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW you don't even need ArcGIS Pro installed, you can install the arcgis module directly into a separate Conda environment on a machine that does not have ArcGIS Pro installed and it will still work. I use it on Linux.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179277#M7443</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-02T00:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179282#M7444</link>
      <description>&lt;P&gt;A different error when a portal url is added:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neil_perol_0-1654129019831.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42593i3A80864140218D5F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neil_perol_0-1654129019831.png" alt="neil_perol_0-1654129019831.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:28:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179282#M7444</guid>
      <dc:creator>neil_perol</dc:creator>
      <dc:date>2022-06-02T00:28:15Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179287#M7445</link>
      <description>&lt;P&gt;Hi Brian, thanks for the reply.&lt;/P&gt;&lt;P&gt;Theoretically, I should still be have an anonymous connection to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://www.arcgis.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;www.arcgis.com&lt;/A&gt;&amp;nbsp;if I use gis = GIS().&lt;BR /&gt;I also tried adding portal url before posting this question, but I still couldn't connect. A different error though:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neil_perol_0-1654129610774.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/42595i9A665C79E07CBE99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neil_perol_0-1654129610774.png" alt="neil_perol_0-1654129610774.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 00:26:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179287#M7445</guid>
      <dc:creator>neil_perol</dc:creator>
      <dc:date>2022-06-02T00:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179588#M7446</link>
      <description>&lt;P&gt;I was able to connect using just "gis = GIS()" and I was able to walk through the Esri code in a debugger.&lt;/P&gt;&lt;P&gt;if you leave out the URL it plugs in "&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;".&lt;/P&gt;&lt;P&gt;If you leave out password but give it a user it will prompt you to type a password.&lt;/P&gt;&lt;P&gt;If you leave out username then it tries to use a token from your environment settings.&lt;/P&gt;&lt;P&gt;If you don't have a token in your environment and no username or password it create an anonymous login.&lt;/P&gt;&lt;P&gt;If there is a token setting and the token is wrong that would do it. The setting is "ESRI_API_KEY".&lt;/P&gt;&lt;P&gt;The other advice I could offer is, get a good Python debugger if you are not already using one. I recommend Microsoft Visual Studio Code, it's free, I spend about 6 1/2 hours of my workday using it. There is a setting you need to put in launch.json file "justMyCode = false" to get it to go into the Esri code. If you did this you could see a little more of what is happening. I can walk you through that if you go that route.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 18:53:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179588#M7446</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-02T18:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179589#M7447</link>
      <description>&lt;P&gt;It's too bad so few Esri error messages are actually connected to the underlying problem.&lt;/P&gt;&lt;P&gt;Often they only make sense after you solve the problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2022 18:55:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179589#M7447</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2022-06-02T18:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179706#M7448</link>
      <description>&lt;P&gt;I found the underlying issue with this, and it's because of the network firewall. I am working on a government building and we have a very secure network which closes the connection as soon as it's made. I tried the codes at home and they work just fine.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 02:54:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179706#M7448</guid>
      <dc:creator>neil_perol</dc:creator>
      <dc:date>2022-06-03T02:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179707#M7449</link>
      <description>&lt;P&gt;Thanks for your replies, Brian. They were very informative. However, I found out that the issue is with the network firewall which is very strict. I tried the codes at home and they work just fine. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 02:55:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1179707#M7449</guid>
      <dc:creator>neil_perol</dc:creator>
      <dc:date>2022-06-03T02:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Connection Error - GIS() class</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1233642#M8039</link>
      <description>&lt;P&gt;Tips to fix-&lt;/P&gt;&lt;P&gt;Restart your computer.&lt;BR /&gt;Make sure your wireless adapter is enabled.&lt;BR /&gt;Restart your modem and router.&lt;BR /&gt;Try a hard network reset.&lt;BR /&gt;Move closer to the router.&lt;BR /&gt;Try using Ethernet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:03:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/connection-error-gis-class/m-p/1233642#M8039</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2022-11-21T06:03:49Z</dc:date>
    </item>
  </channel>
</rss>

