<?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: Invalid Async Job Id fails if Access Token is Refresshed in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/393040#M21667</link>
    <description>&lt;P&gt;We've fixed this so that you can now check the async job status even if the original access token is revoked or expired, as long as the access token you are using is for the same app/user pair as the original.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jan 2020 17:39:52 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2020-01-28T17:39:52Z</dc:date>
    <item>
      <title>Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376786#M21125</link>
      <description>&lt;P&gt;I've been doing some work with the batch APIs and came across this error message&amp;nbsp;invalid_async_job_id.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've only come across this error when I've had to refresh my token. I send my request to create a folder batch. I get my my job id :&amp;nbsp;dbjid:AAApl4cr-f5ZVygtd8uOfADUlX1ztpq6R8vHe44N5wluGqoSRmIR-LuwCFW4hwKXQggXsdVm6GmXZz_Fa7f4Lhgc&lt;/P&gt;
&lt;P&gt;I make a request to createfolderbatchcheck with the job is, it fails intially with&amp;nbsp;expired_access_token. I get a new token and&amp;nbsp; make another request to&amp;nbsp;createfolderbatchcheck with my job id and new token and get the above error.&lt;/P&gt;
&lt;P&gt;No folders get created either, I would of thought by having a job id these would of been created regardless of checking the status of the job&lt;/P&gt;
&lt;P&gt;Do i need to do anything else?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 18:56:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376786#M21125</guid>
      <dc:creator>Ashley B.15</dc:creator>
      <dc:date>2019-11-06T18:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376851#M21135</link>
      <description>&lt;P&gt;Thanks for the report!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First, to confirm, yes, the job should run whether or not you actually check the status. If you don't check the status though, you won't know if it failed, and if so, why.&lt;/P&gt;
&lt;P&gt;Anyway, regarding the unexpected 'invalid_async_job_id' error, we looked into this and determined this can happen if the original access token used to start the job is revoked or expired. I unfortunately don't have a workaround to share for a way to check the job status in this case, but this is open with the team. I'll follow up here with any updates on this.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 21:26:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376851#M21135</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-06T21:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376945#M21139</link>
      <description>&lt;P&gt;Thanks for the quick response.&lt;/P&gt;&lt;P&gt;Sorry regarding :&lt;/P&gt;&lt;P&gt;"First, to confirm, yes, the job should run whether or not you actually check the status. If you don't check the status though, you won't know if it failed, and if so, why."&lt;/P&gt;&lt;P&gt;So with the below&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created batch and received a batch job itAt this point I would of expected the job to run and started to create folders&lt;BR /&gt;Token Expires here&lt;BR /&gt;Check batch job and get invalid_async_job_id&lt;BR /&gt;In the above, why would the folders not be created?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I ask, I was thinking of retrying Create Batch (with a new token) again so my process is not disrupted. I don't want two jobs running and conflicting.&lt;/P&gt;&lt;P&gt;I assume the expired token scenario above would affect all batch jobs? (ie create a job with a good token, the token expires. Check status with another new token(not the original that created the job. Job fails)&lt;/P&gt;&lt;P&gt;Would the following work, if I renew my token earlier on and not let it expire (token looks to be good for 4 hours) would this overcome this problem?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 10:52:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/376945#M21139</guid>
      <dc:creator>Ashley B.15</dc:creator>
      <dc:date>2019-11-07T10:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377047#M21143</link>
      <description>&lt;P&gt;Without more information, I can't say exactly why your folders may not have been created. There are a number of ways for a&amp;nbsp;create_folder_batch job to fail, resulting in the folders not being created. Please refer to the error documentation for the&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_batch" target="_self"&gt;/2/files/create_folder_batch&lt;/A&gt; and&amp;nbsp;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#files-create_folder_batch-check" target="_self"&gt;/2/files/create_folder_batch/check&lt;/A&gt;&amp;nbsp;endpoints for information on what errors can occur&lt;/P&gt;
&lt;P&gt;Please do try starting the job again with a new access token and check the result within the four hours that the access token is valid. (Or, use a long-lived access token instead.) If API isn't behaving as expected, e.g., if the job fails when it appears it shouldn't have, please let us know and share the output so we can check on it.&lt;/P&gt;
&lt;P&gt;And yes, right now, the ability to check the status of an async job depends on the validity of the original access token used to start that job. If that access token is no longer valid, you won't be able to check the status of an async job, even with another valid access token for that app/user. You'd need to check the result of the job while the original access token is still valid.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 15:53:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377047#M21143</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-07T15:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377056#M21145</link>
      <description>&lt;P&gt;Thanks Greg, is the long-lived access the token you can generate in the admin console?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 18:12:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377056#M21145</guid>
      <dc:creator>Ashley B.15</dc:creator>
      <dc:date>2019-11-07T18:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377064#M21146</link>
      <description>&lt;P&gt;Yes, that's correct. (You can also still retrieve them using &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize" target="_self"&gt;the public OAuth 2 flow&lt;/A&gt;.)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 16:20:34 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377064#M21146</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2019-11-07T16:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377089#M21147</link>
      <description>&lt;P&gt;Thanks Greg, all set.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Nov 2019 17:17:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/377089#M21147</guid>
      <dc:creator>Ashley B.15</dc:creator>
      <dc:date>2019-11-07T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid Async Job Id fails if Access Token is Refresshed</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/393040#M21667</link>
      <description>&lt;P&gt;We've fixed this so that you can now check the async job status even if the original access token is revoked or expired, as long as the access token you are using is for the same app/user pair as the original.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2020 17:39:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Invalid-Async-Job-Id-fails-if-Access-Token-is-Refresshed/m-p/393040#M21667</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-01-28T17:39:52Z</dc:date>
    </item>
  </channel>
</rss>

