<?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 Intermittent Token Required (Error 499) in long-running processes in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628054#M11481</link>
    <description>&lt;P&gt;I have a couple of long-running processes (20-30 minutes) for synchronizing data from ArcGIS Online to an Azure database.&lt;/P&gt;&lt;P&gt;Most of the time these processes complete without issue, but occasionally I'll get a "Token Required" error (code 499) midway through the process.&amp;nbsp; It could happen at any point in the processes, although it's usually in the latter part, and could happen on any call - query(), query_related_records(), etc.&lt;/P&gt;&lt;P&gt;This is occurring with multiple processes, and has been replicated from multiple desktop machines with different ArcGIS Pro versions.&lt;/P&gt;&lt;P&gt;My theory is the token is expiring but I don't really have any evidence to support that, and I would've expected the error message to be something about an invalid token rather than "token required".&lt;/P&gt;&lt;P&gt;Has anyone else run into this and been able to identify the problem, and if so, is there a "clean" workaround?&lt;/P&gt;</description>
    <pubDate>Sat, 28 Jun 2025 08:53:14 GMT</pubDate>
    <dc:creator>MobiusSnake</dc:creator>
    <dc:date>2025-06-28T08:53:14Z</dc:date>
    <item>
      <title>Intermittent Token Required (Error 499) in long-running processes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628054#M11481</link>
      <description>&lt;P&gt;I have a couple of long-running processes (20-30 minutes) for synchronizing data from ArcGIS Online to an Azure database.&lt;/P&gt;&lt;P&gt;Most of the time these processes complete without issue, but occasionally I'll get a "Token Required" error (code 499) midway through the process.&amp;nbsp; It could happen at any point in the processes, although it's usually in the latter part, and could happen on any call - query(), query_related_records(), etc.&lt;/P&gt;&lt;P&gt;This is occurring with multiple processes, and has been replicated from multiple desktop machines with different ArcGIS Pro versions.&lt;/P&gt;&lt;P&gt;My theory is the token is expiring but I don't really have any evidence to support that, and I would've expected the error message to be something about an invalid token rather than "token required".&lt;/P&gt;&lt;P&gt;Has anyone else run into this and been able to identify the problem, and if so, is there a "clean" workaround?&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jun 2025 08:53:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628054#M11481</guid>
      <dc:creator>MobiusSnake</dc:creator>
      <dc:date>2025-06-28T08:53:14Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent Token Required (Error 499) in long-running processes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628077#M11482</link>
      <description>&lt;P&gt;You can check the expiration time of the current session token and print it before each call to see if that is the issue:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; gis._con._session.auth._expiration_time
datetime.datetime(2025, 6, 28, 22, 13, 5, 762930)&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 28 Jun 2025 17:14:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628077#M11482</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2025-06-28T17:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Intermittent Token Required (Error 499) in long-running processes</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628910#M11487</link>
      <description>&lt;P&gt;I updated yesterday and cannot add any ArcGIS Online layers without failing. I managed to get it to log in and verify the token for about a minute, but now it's not working again. I am not sure if the update did something or something else.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asccgm_0-1751382534987.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/135518i603F6ED41ADE3338/image-size/medium?v=v2&amp;amp;px=400" role="button" title="asccgm_0-1751382534987.png" alt="asccgm_0-1751382534987.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>Tue, 01 Jul 2025 15:09:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/intermittent-token-required-error-499-in-long/m-p/1628910#M11487</guid>
      <dc:creator>asccgm</dc:creator>
      <dc:date>2025-07-01T15:09:59Z</dc:date>
    </item>
  </channel>
</rss>

