<?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: URLError: &amp;lt;urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host&amp;gt; in ArcGIS Online Developers Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511649#M602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WE updated ArcGIS server from 10.4.x to 10.6.x&amp;nbsp; and the issue was fixed. The new library in version 10.6 worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jul 2019 11:45:58 GMT</pubDate>
    <dc:creator>JoseSanchez</dc:creator>
    <dc:date>2019-07-19T11:45:58Z</dc:date>
    <item>
      <title>URLError: &lt;urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host&gt;</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511647#M600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We get the following error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: red; font-family: Calibri; font-size: medium;"&gt;URLError: &amp;lt;urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P&gt;when running the function below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def generateToken():&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Generating Token"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenURL = "&lt;A href="https://arcgis.com/sharing/rest/generateToken"&gt;https://arcgis.com/sharing/rest/generateToken&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; data = {'username': PortalUtil.getAGOLUserName(),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'password': PortalUtil.getAGOLPassword(),&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'referer': "&lt;A href="https://www.arcgis.com"&gt;https://www.arcgis.com&lt;/A&gt;",&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'f': 'json'}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; encodedData = urllib.urlencode(data)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenRequest = urllib2.Request(tokenURL, encodedData)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenResponse = urllib2.urlopen(tokenRequest)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tokenResponseJSON = json.load(tokenResponse)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print (tokenResponseJSON['token'])&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return tokenResponseJSON['token']&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;token = generateToken()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: red; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 15:52:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511647#M600</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2019-05-30T15:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: URLError: &lt;urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host&gt;</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511648#M601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jose - were you able to find a resolution to this? We are having the same issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 19:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511648#M601</guid>
      <dc:creator>NoelPerkins3</dc:creator>
      <dc:date>2019-07-18T19:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: URLError: &lt;urlopen error [Errno 10054] An existing connection was forcibly closed by the remote host&gt;</title>
      <link>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511649#M602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WE updated ArcGIS server from 10.4.x to 10.6.x&amp;nbsp; and the issue was fixed. The new library in version 10.6 worked.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 11:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-developers-questions/urlerror-lt-urlopen-error-errno-10054-an-existing/m-p/511649#M602</guid>
      <dc:creator>JoseSanchez</dc:creator>
      <dc:date>2019-07-19T11:45:58Z</dc:date>
    </item>
  </channel>
</rss>

