<?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: Example Python script not working from ESRI site in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417392#M16179</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah...could be that it doesn´t work with Image Services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 14:36:07 GMT</pubDate>
    <dc:creator>RobertBuckley1</dc:creator>
    <dc:date>2016-02-19T14:36:07Z</dc:date>
    <item>
      <title>Example Python script not working from ESRI site</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417389#M16176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://server.arcgis.com/en/server/10.3/administer/windows/example-check-a-folder-for-stopped-services.htm" title="http://server.arcgis.com/en/server/10.3/administer/windows/example-check-a-folder-for-stopped-services.htm"&gt;Example: Check a folder for stopped services—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to test this Script, but I always get the following error after running:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Processed folder information successfully. Now processing services...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\gisadmin\Desktop\AGSAdmin_py\CheckStopped.py", line 164, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sys.exit(main(sys.argv[1:]))&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Users\gisadmin\Desktop\AGSAdmin_py\CheckStopped.py", line 83, in main&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; httpConn.request("POST", statusURL, params, headers)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\httplib.py", line 995, in request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._send_request(method, url, body, headers)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\httplib.py", line 1029, in _send_request&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.endheaders(body)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\httplib.py", line 991, in endheaders&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self._send_output(message_body)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\httplib.py", line 844, in _send_output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.send(msg)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\httplib.py", line 820, in send&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; self.sock.sendall(data)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "D:\Python27\ArcGISx6410.3\lib\socket.py", line 224, in meth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return getattr(self._sock,name)(*args)&lt;/P&gt;&lt;P&gt;UnicodeEncodeError: 'ascii' codec can't encode character u'\xdf' in position 71: ordinal not in range(128)&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other scripts have worked fine from the examples list - why doesn´t this one work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 12:30:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417389#M16176</guid>
      <dc:creator>RobertBuckley1</dc:creator>
      <dc:date>2016-02-19T12:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Example Python script not working from ESRI site</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417390#M16177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can happen when your map services contain some "strange" characters. If you keep the names simple, this will not happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 12:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417390#M16177</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-02-19T12:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Example Python script not working from ESRI site</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417391#M16178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have checked the names of my services. The names consist of either english letters, numbers or an underscore. No "strange" characters exist&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:26:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417391#M16178</guid>
      <dc:creator>RobertBuckley1</dc:creator>
      <dc:date>2016-02-19T14:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Example Python script not working from ESRI site</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417392#M16179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah...could be that it doesn´t work with Image Services.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:36:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417392#M16179</guid>
      <dc:creator>RobertBuckley1</dc:creator>
      <dc:date>2016-02-19T14:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: Example Python script not working from ESRI site</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417393#M16180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check again&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; print(u'\xdf' )&lt;/P&gt;&lt;P&gt;ß&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:43:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/example-python-script-not-working-from-esri-site/m-p/417393#M16180</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-02-19T14:43:40Z</dc:date>
    </item>
  </channel>
</rss>

