<?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: ArcGIS Server Invalid Token 498 error from Rest API call in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1036656#M29695</link>
    <description>&lt;P&gt;Hi Pugazh,&lt;/P&gt;&lt;P&gt;Are you acquiring the token through a GET or POST request? What about the ExportMap operation?&lt;/P&gt;&lt;P&gt;Is your client machine (the requestip) or the ArcGIS Server machine behind a load balancer/proxy? If so, then we would have to use the IP address of the proxy server.&lt;/P&gt;&lt;P&gt;What is the behavior if you attempt the ExportMap operation with the token appended in the URL bar of a web browser manually?&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
    <pubDate>Mon, 15 Mar 2021 15:38:42 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-03-15T15:38:42Z</dc:date>
    <item>
      <title>ArcGIS Server Invalid Token 498 error from Rest API call</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1036637#M29693</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am using ArcGIS Standalone GIS Server, generated token using&amp;nbsp;&lt;A href="http://server:port/arcgis/admin/generateToken" target="_blank"&gt;http://server:port/arcgis/admin/generateToken&lt;/A&gt;&amp;nbsp;with following parameters.&lt;/P&gt;&lt;P&gt;username: &amp;lt;username&amp;gt;&lt;/P&gt;&lt;P&gt;password: &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;client: requestip&lt;/P&gt;&lt;P&gt;expiration: 1440&lt;/P&gt;&lt;P&gt;f: json&lt;/P&gt;&lt;P&gt;When passing the generated token along with the rest service ExportMap method in postman, I am getting 498 Invalid token&amp;nbsp;error.&lt;/P&gt;&lt;P&gt;Any thoughts on this.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pugazh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 14:58:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1036637#M29693</guid>
      <dc:creator>PugazhendhiN</dc:creator>
      <dc:date>2021-03-15T14:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Invalid Token 498 error from Rest API call</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1036656#M29695</link>
      <description>&lt;P&gt;Hi Pugazh,&lt;/P&gt;&lt;P&gt;Are you acquiring the token through a GET or POST request? What about the ExportMap operation?&lt;/P&gt;&lt;P&gt;Is your client machine (the requestip) or the ArcGIS Server machine behind a load balancer/proxy? If so, then we would have to use the IP address of the proxy server.&lt;/P&gt;&lt;P&gt;What is the behavior if you attempt the ExportMap operation with the token appended in the URL bar of a web browser manually?&lt;/P&gt;&lt;P&gt;-Calvin&lt;/P&gt;</description>
      <pubDate>Mon, 15 Mar 2021 15:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1036656#M29695</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-03-15T15:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server Invalid Token 498 error from Rest API call</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1038128#M29740</link>
      <description>&lt;P&gt;Using a referrer based token is often the better approach when working with tokens, because of what&amp;nbsp;@Anonymous User&amp;nbsp;mentions; the IP of the request may not actually come from the machine you're making the request from. Using a referrer and including the referrer header in any requests to use the token is the preferred approach:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://enterprise.arcgis.com/en/server/latest/administer/windows/acquiring-arcgis-tokens.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/administer/windows/acquiring-arcgis-tokens.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;EM&gt;If there is a proxy server between the client application or browser and the&amp;nbsp;&lt;SPAN class="ph"&gt;ArcGIS Server&lt;/SPAN&gt;&amp;nbsp;site, tokens generated using the&amp;nbsp;&lt;SPAN class="uicontrol"&gt;IP Address&lt;/SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;SPAN class="uicontrol"&gt;IP address of this request's origin&lt;/SPAN&gt;&amp;nbsp;options must be bound to the IP address of the proxy server. If there are multiple load balancing proxy servers between the client application or browser and the&amp;nbsp;&lt;SPAN class="ph"&gt;ArcGIS Server&lt;/SPAN&gt;, the&amp;nbsp;&lt;SPAN class="uicontrol"&gt;HTTP Referer&lt;/SPAN&gt;&amp;nbsp;option should be used.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 15:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcgis-server-invalid-token-498-error-from-rest/m-p/1038128#M29740</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2021-03-18T15:52:40Z</dc:date>
    </item>
  </channel>
</rss>

