<?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: Utilities/PrintingTools service error token required status code 499 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306087#M36455</link>
    <description>&lt;P&gt;Could you run your ArcGIS Servers in Debug logging mode to troubleshoot this? A 499 could be your client closing the connection early, the fact that your message includes "token required" seems like it's coming from ArcGIS Server.&lt;/P&gt;&lt;P&gt;The logs may show more information. Are you using a Web adaptor? Is the Config store also highly available or in the cloud?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can find something that helps!&lt;/P&gt;</description>
    <pubDate>Thu, 06 Jul 2023 11:12:22 GMT</pubDate>
    <dc:creator>A_Wyn_Jones</dc:creator>
    <dc:date>2023-07-06T11:12:22Z</dc:date>
    <item>
      <title>Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306075#M36454</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a 10.9.1 ArcGIS Enterprise system with high availability and IWA. It has two ArcGIS Server machines. The PrintingTools REST API is available to everyone (in synchronous mode), no authentication is necessary.&lt;/P&gt;&lt;P&gt;We have&amp;nbsp; a custom C# Web .NET API, that is calling the REST API. The request that we sent includes the parameter WebMapAsJSON with three layers, all of them accessible to everyone too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sometimes, not always, we receive the error message 499: token required, when we try to use the default PrintingTools. The issue is not systematic. Sometimes it is happening, sometimes it is not. It is happening in both ArcGIS Server machines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We suspect that something is interrupting the service or something is failing internally and that the error message is misleading and it should return an error message more helpful.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Our question is:&lt;/P&gt;&lt;P&gt;How can we prevent the issue from happening? and&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can we investigate if we can improve the error message to something more helpful?&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 10:12:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306075#M36454</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2023-07-06T10:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306087#M36455</link>
      <description>&lt;P&gt;Could you run your ArcGIS Servers in Debug logging mode to troubleshoot this? A 499 could be your client closing the connection early, the fact that your message includes "token required" seems like it's coming from ArcGIS Server.&lt;/P&gt;&lt;P&gt;The logs may show more information. Are you using a Web adaptor? Is the Config store also highly available or in the cloud?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you can find something that helps!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:12:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306087#M36455</guid>
      <dc:creator>A_Wyn_Jones</dc:creator>
      <dc:date>2023-07-06T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306090#M36456</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/599132"&gt;@A_Wyn_Jones&lt;/a&gt;&amp;nbsp;, thanks for the fast reply!&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using web adaptor and the config store is in internal shared folder on a NAS system, highly available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Turning on the debug logging might be a good idea but we don't know when the issue is happening so we will have some trouble with space for the logs... I will see what we can do about this.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 11:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306090#M36456</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2023-07-06T11:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306098#M36457</link>
      <description>&lt;P&gt;No problem!&lt;/P&gt;&lt;P&gt;Is the NAS system using DFS to be highly available? There's some requirements for immediate consistency which would provide an intermittent issue like this (if the issue is stemming from the config store connection).&lt;/P&gt;&lt;P&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/install/windows/choosing-a-nas-device.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/install/windows/choosing-a-nas-device.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you say, there's a lot of components to this so the troubleshooting may take a while.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jul 2023 12:03:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306098#M36457</guid>
      <dc:creator>A_Wyn_Jones</dc:creator>
      <dc:date>2023-07-06T12:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306553#M36474</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/599132"&gt;@A_Wyn_Jones&lt;/a&gt;&amp;nbsp;, thanks for the idea! The NAS is not using DFS. Apparently there is a High Availability NAS package? something like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2023 15:23:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306553#M36474</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2023-07-07T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306881#M36483</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/298169"&gt;@MichailMarinakis1&lt;/a&gt;&amp;nbsp;can you try deleting cookies on your browser and then running the print task? If successful, then the issue is likely due to a conflicting cookie on the browser. We have a similar bug on our system, whereby any users who access the Rest Directory, retrieve a cookie that conflicts with the Print Service. Currently our only workaround is to remind users to delete this specific cookie if they come across the error, however, it's only really affecting power users and GIS engineers who regularly access the rest directory&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 08:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306881#M36483</guid>
      <dc:creator>David_Brooks</dc:creator>
      <dc:date>2023-07-10T08:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Utilities/PrintingTools service error token required status code 499</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306883#M36484</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/415930"&gt;@David_Brooks&lt;/a&gt;&amp;nbsp;, thank you for the reply!&lt;/P&gt;&lt;P&gt;The service is available to everyone, no authorization is required. We don't send the request from a browser, but from another C# Rest API, using &lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-7.0" target="_self"&gt;HttpClient&lt;/A&gt;. In this case, we don't have cookies.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jul 2023 09:06:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/utilities-printingtools-service-error-token/m-p/1306883#M36484</guid>
      <dc:creator>MichailMarinakis1</dc:creator>
      <dc:date>2023-07-10T09:06:13Z</dc:date>
    </item>
  </channel>
</rss>

