<?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 REST API rejecting just-generated token with &amp;quot;498 - Invalid Token&amp;quot; in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-rejecting-just-generated-token-with-quot/m-p/568491#M2717</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting a few weeks ago, most requests to the REST API (specifically, the VRP API) are failing with the error "498 - Invalid Token".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've gathered, error 498 implies an expired token, but the token used is a token that was generated immediately prior to the request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The token is obtained by POSTing to&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/token/" title="https://www.arcgis.com/sharing/rest/oauth2/token/"&gt;https://www.arcgis.com/sharing/rest/oauth2/token/&lt;/A&gt;&amp;nbsp;, with grant_type set to&amp;nbsp;client_credentials, passing client_id, client_secret and f=json. Then, the token is appended on a request to&amp;nbsp;&lt;A class="link-titled" href="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob" title="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submit…&lt;/A&gt;&amp;nbsp;, in the "token" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has there been any changes to the way tokens are supposed to be generated/consumed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Feb 2018 19:27:10 GMT</pubDate>
    <dc:creator>AryelTupinambá</dc:creator>
    <dc:date>2018-02-19T19:27:10Z</dc:date>
    <item>
      <title>REST API rejecting just-generated token with "498 - Invalid Token"</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-rejecting-just-generated-token-with-quot/m-p/568491#M2717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Starting a few weeks ago, most requests to the REST API (specifically, the VRP API) are failing with the error "498 - Invalid Token".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I've gathered, error 498 implies an expired token, but the token used is a token that was generated immediately prior to the request.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The token is obtained by POSTing to&amp;nbsp;&lt;A class="link-titled" href="https://www.arcgis.com/sharing/rest/oauth2/token/" title="https://www.arcgis.com/sharing/rest/oauth2/token/"&gt;https://www.arcgis.com/sharing/rest/oauth2/token/&lt;/A&gt;&amp;nbsp;, with grant_type set to&amp;nbsp;client_credentials, passing client_id, client_secret and f=json. Then, the token is appended on a request to&amp;nbsp;&lt;A class="link-titled" href="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob" title="https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submitJob"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/VehicleRoutingProblem/GPServer/SolveVehicleRoutingProblem/submit…&lt;/A&gt;&amp;nbsp;, in the "token" field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has there been any changes to the way tokens are supposed to be generated/consumed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 19:27:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-rejecting-just-generated-token-with-quot/m-p/568491#M2717</guid>
      <dc:creator>AryelTupinambá</dc:creator>
      <dc:date>2018-02-19T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: REST API rejecting just-generated token with "498 - Invalid Token"</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-rejecting-just-generated-token-with-quot/m-p/568492#M2718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aryel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever manage to resolve this issue? I am facing a similar challenge, see my thread here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/929157-re-arcgis-server-invalid-token-from-application-using-rest-api"&gt;https://community.esri.com/message/929157-re-arcgis-server-invalid-token-from-application-using-rest-api&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2020 01:28:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/rest-api-rejecting-just-generated-token-with-quot/m-p/568492#M2718</guid>
      <dc:creator>JackSilburn</dc:creator>
      <dc:date>2020-05-15T01:28:45Z</dc:date>
    </item>
  </channel>
</rss>

