<?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: java sdk: &amp;quot;error&amp;quot;: &amp;quot;The given OAuth 2 access token doesn't exist or has expired.&amp;quot; in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76195#M2283</link>
    <description>&lt;P&gt;ps: typo: i meant to write:&lt;BR /&gt;
i have removed all invocations to this method and will post again if this issue still remains.&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2015 12:53:55 GMT</pubDate>
    <dc:creator>rr z.</dc:creator>
    <dc:date>2015-04-17T12:53:55Z</dc:date>
    <item>
      <title>java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76189#M2277</link>
      <description>&lt;P&gt;hello, &lt;/P&gt;

&lt;P&gt;my application runs non stop (daemon) and checks every 10 seconds if a file has changed (lastmodified)&lt;BR /&gt;
the application works well, but after some time (1 - 2 days) the token seems to be invalidated.&lt;/P&gt;

&lt;P&gt;i did not invalidate it, and no one else has access to do this.&lt;BR /&gt;
if i renew the token, the application will run again for some time and then stop with this error.&lt;BR /&gt;
i tried generating a token through the dropbox app console and through the web interface.&lt;BR /&gt;
the issue happens in both cases.&lt;/P&gt;

&lt;P&gt;according to the documentation the token should be valid for "years"&lt;/P&gt;

&lt;P&gt;can anyone help on how to avoid the token being invalidated.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;

&lt;P&gt;environment:&lt;BR /&gt;
java 7&lt;BR /&gt;
raspbian latest version&lt;BR /&gt;
dropbox java sdk latest version.&lt;/P&gt;

&lt;P&gt;app name: dbxvfs&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:43:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76189#M2277</guid>
      <dc:creator>rr z.</dc:creator>
      <dc:date>2019-05-29T09:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76190#M2278</link>
      <description>&lt;P&gt;OAuth 2 access tokens for the Dropbox API don't expire, as you said, but they can be revoked:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;by the user revoking the app on the &lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;account security page&lt;/A&gt;
&lt;/LI&gt;
&lt;LI&gt;by the user deleting the app folder (if the app uses the app folder permission)&lt;/LI&gt;
&lt;LI&gt;by the app calling &lt;A href="https://www.dropbox.com/developers/core/docs#disable-token" rel="nofollow noreferrer"&gt;&lt;CODE&gt;/disable_access_token&lt;/CODE&gt;&lt;/A&gt;
&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Do any of these apply to your app? E.g., check your code for &lt;CODE&gt;disable_access_token&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Also, you don't need to "renew" access tokens on the Dropbox API. Can you clarify what you mean by that?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2015 22:05:41 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76190#M2278</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-04-09T22:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76191#M2279</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;thanks for your answer.&lt;/P&gt;

&lt;P&gt;i think the issue was on my side.&lt;BR /&gt;
i had 2 instances of the app running in parallel using 2 different tokens.&lt;BR /&gt;
in addition the apps did not correctly store the tokens.&lt;BR /&gt;
after resolving this it seems that the issue did not reoccur.&lt;/P&gt;

&lt;P&gt;i think you can consider this as a non-issue.&lt;/P&gt;

&lt;P&gt;by "renew" i mean is generate a new token through the app console.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Apr 2015 21:07:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76191#M2279</guid>
      <dc:creator>rr z.</dc:creator>
      <dc:date>2015-04-12T21:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76192#M2280</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;it seems that this still happens.&lt;BR /&gt;
I am now sure that my application works correctly.&lt;/P&gt;

&lt;P&gt;at 15-04-14 08:25:19 (central european time) i created a new token through the app console "generate access token" function and restarted my application&lt;/P&gt;

&lt;P&gt;at 15-04-14 20:22:49 the java sdk throws the following exception:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Caused by: {"error": "The given OAuth 2 access token doesn't exist or has expired."}
    com.dropbox.core.DbxRequestUtil.unexpectedStatus(DbxRequestUtil.java:208)
    com.dropbox.core.DbxClient$2.handle(DbxClient.java:186)
    com.dropbox.core.DbxRequestUtil.doGet(DbxRequestUtil.java:242)
    com.dropbox.core.DbxClient.doGet(DbxClient.java:1942)
    com.dropbox.core.DbxClient.getMetadataWithChildrenBase(DbxClient.java:181)
    com.dropbox.core.DbxClient.getMetadataWithChildren(DbxClient.java:148)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;it seems that the token has been invalidated after 12 hours.&lt;/P&gt;

&lt;P&gt;i am pretty sure that i did not invalidate it. &lt;/P&gt;

&lt;P&gt;this is pretty annoying. because it makes the usage of dropbox for this kind of applications unpredictable.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 13:00:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76192#M2280</guid>
      <dc:creator>rr z.</dc:creator>
      <dc:date>2015-04-15T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76193#M2281</link>
      <description>&lt;P&gt;Have you checked your code for &lt;CODE&gt;disable_access_token&lt;/CODE&gt; or &lt;CODE&gt;disableAccessToken&lt;/CODE&gt; though? (The latter is the method in the Java SDK that calls the &lt;CODE&gt;/disable_access_token&lt;/CODE&gt; endpoint.)&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 22:13:31 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76193#M2281</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-04-15T22:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76194#M2282</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;

&lt;P&gt;yes, there was a call to disableAccessToken.&lt;BR /&gt;
the process is restarted approx every 2 hours.&lt;BR /&gt;
at stop of the process this method was invoked.&lt;/P&gt;

&lt;P&gt;however what wonders me is why the invocation of this method may disables the current token at random.&lt;BR /&gt;
at times the token will be valid for 1-2 days although it is being disabled every 2 hours.&lt;/P&gt;

&lt;P&gt;i have not removed all invocations to this method and will post again if this issue still remains.&lt;/P&gt;

&lt;P&gt;thanks&lt;/P&gt;

&lt;P&gt;-- Ron&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 12:52:54 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76194#M2282</guid>
      <dc:creator>rr z.</dc:creator>
      <dc:date>2015-04-17T12:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: java sdk: "error": "The given OAuth 2 access token doesn't exist or has expired."</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76195#M2283</link>
      <description>&lt;P&gt;ps: typo: i meant to write:&lt;BR /&gt;
i have removed all invocations to this method and will post again if this issue still remains.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2015 12:53:55 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/java-sdk-quot-error-quot-quot-The-given-OAuth-2-access-token/m-p/76195#M2283</guid>
      <dc:creator>rr z.</dc:creator>
      <dc:date>2015-04-17T12:53:55Z</dc:date>
    </item>
  </channel>
</rss>

