<?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 Accessing Stand-Alone ArcGIS Server broken at 1.8.2 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803774#M2168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using version 1.7.0 of the API, this code snippet works fine:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;from arcgis.gis import server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;user = '&amp;lt;admin user&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;pswd = '&amp;lt;password&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;server_base_url = "https://&amp;lt;server&amp;gt;/&amp;lt;webadaptor&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;gis_server = server.Server(url=f"{server_base_url}/admin",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;token_url=f"{server_base_url}/tokens/generateToken",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;username=user,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;password=pswd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;service = gis_server.content.get('&amp;lt;Service Name&amp;gt;', folder='&amp;lt;Service Folder&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;service.service.status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: transparent; color: #000000; text-decoration: none; font-size: 14px; "&gt;{'configuredState': 'STARTED', 'realTimeState': 'STARTED'}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in 1.8.2 the service status returns:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #000000; background-color: transparent; text-decoration: none; font-size: 14px;"&gt;{'status': 'error', 'messages': ["Unauthorized access. Token not found. You can generate a token using the 'generateToken' operation."], 'code': 499}&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jul 2020 16:43:15 GMT</pubDate>
    <dc:creator>Huber_Daniel_C</dc:creator>
    <dc:date>2020-07-29T16:43:15Z</dc:date>
    <item>
      <title>Accessing Stand-Alone ArcGIS Server broken at 1.8.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803774#M2168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using version 1.7.0 of the API, this code snippet works fine:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;from arcgis.gis import server&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;user = '&amp;lt;admin user&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;pswd = '&amp;lt;password&amp;gt;'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;server_base_url = "https://&amp;lt;server&amp;gt;/&amp;lt;webadaptor&amp;gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;gis_server = server.Server(url=f"{server_base_url}/admin",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;token_url=f"{server_base_url}/tokens/generateToken",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;username=user,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;password=pswd)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;service = gis_server.content.get('&amp;lt;Service Name&amp;gt;', folder='&amp;lt;Service Folder&amp;gt;')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: tahoma, arial, helvetica, sans-serif;"&gt;service.service.status&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: transparent; color: #000000; text-decoration: none; font-size: 14px; "&gt;{'configuredState': 'STARTED', 'realTimeState': 'STARTED'}&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, in 1.8.2 the service status returns:&lt;BR /&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #000000; background-color: transparent; text-decoration: none; font-size: 14px;"&gt;{'status': 'error', 'messages': ["Unauthorized access. Token not found. You can generate a token using the 'generateToken' operation."], 'code': 499}&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 16:43:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803774#M2168</guid>
      <dc:creator>Huber_Daniel_C</dc:creator>
      <dc:date>2020-07-29T16:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Stand-Alone ArcGIS Server broken at 1.8.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803775#M2169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It actually broke in 1.8.0, but remains broken through 1.8.2.&amp;nbsp; What you are seeing is related to a defect I reported to the team last week, and they have stated it will be addressed in 1.8.3.&amp;nbsp; See &lt;A class="link-titled" href="https://github.com/Esri/arcgis-python-api/issues/748" title="https://github.com/Esri/arcgis-python-api/issues/748"&gt;arcgis.gis.server.admin.administration.Server Mangles arcgis.gis._impl._con._connection.Connection · Issue #748 · Esri/a…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:05:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803775#M2169</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-29T19:05:21Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Stand-Alone ArcGIS Server broken at 1.8.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803776#M2170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply and link to your open Issue on their Github site.&amp;nbsp; I didn't notice it when I entered my issue today (&lt;A class="link-titled" href="https://github.com/Esri/arcgis-python-api/issues/752" title="https://github.com/Esri/arcgis-python-api/issues/752"&gt;Stand-Alone ArcGIS Server Authentication Fails · Issue #752 · Esri/arcgis-python-api · GitHub&lt;/A&gt;&amp;nbsp;)&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;We finally have access to this API in the enterprise environment I support and I seem to keep tripping over these issues.&amp;nbsp; &amp;nbsp;Really hard not to give up and stick with the tried and true REST API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803776#M2170</guid>
      <dc:creator>Huber_Daniel_C</dc:creator>
      <dc:date>2020-07-29T19:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Stand-Alone ArcGIS Server broken at 1.8.2</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803777#M2171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hear ya.&amp;nbsp; The ArcGIS API for Python is mostly a wrapper for the REST API, but there are things the team implements differently than how I interact with the REST API directly, so there are some trade-offs using it.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jul 2020 19:13:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/accessing-stand-alone-arcgis-server-broken-at-1-8/m-p/803777#M2171</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-07-29T19:13:34Z</dc:date>
    </item>
  </channel>
</rss>

