<?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: Handling expired token in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1051655#M5974</link>
    <description>&lt;P&gt;related?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-increase-time-before-token-expires-with-arcgis-python-api/m-p/882356#M5175" target="_blank"&gt;How to increase time before token expires with Arc... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 10:23:55 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-04-27T10:23:55Z</dc:date>
    <item>
      <title>Handling expired token</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1051613#M5973</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm currently running into issues with my Python script which uses ArcGIS API for Python to overwrite a feature service. The script is unable to complete publishing an item because the access token I use for authorisation has expired.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I believe this is happening because one of the commands to publish a service definition file using ArcGIS API for Python exceeds the life of the access token which is 30 minutes. The feature service is rather large so that is understandable . (&lt;A href="https://developers.arcgis.com/rest/users-groups-and-items/token.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/users-groups-and-items/token.htm&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;I have already refreshed the token for every API command I have on the script and it still doesn't work because the single overwrite command takes longer than 30 minutes.&lt;/P&gt;&lt;P&gt;How do we actually handle tokens that expires halfway before the API completes executing?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Weng&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 07:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1051613#M5973</guid>
      <dc:creator>WengNg2</dc:creator>
      <dc:date>2021-04-27T07:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Handling expired token</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1051655#M5974</link>
      <description>&lt;P&gt;related?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-increase-time-before-token-expires-with-arcgis-python-api/m-p/882356#M5175" target="_blank"&gt;How to increase time before token expires with Arc... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 10:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1051655#M5974</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-04-27T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Handling expired token</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1056137#M6036</link>
      <description>&lt;P&gt;It is related but it doesn't solve the issue of what happens when an API command runs for more than 30 mins.&lt;/P&gt;&lt;P&gt;Am I out of luck in this situation? I don't know if I can 'resume' an API action .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 09:13:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/handling-expired-token/m-p/1056137#M6036</guid>
      <dc:creator>WengNg2</dc:creator>
      <dc:date>2021-05-10T09:13:21Z</dc:date>
    </item>
  </channel>
</rss>

