<?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: com.dropbox.core.DbxException$BadRequest: {&amp;quot;error_description&amp;quot;: &amp;quot;code doesn't exist or has expired&amp;quot;, &amp;quot;error&amp;quot;: &amp;quot;invalid_grant&amp;quot;} in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-DbxException-BadRequest-quot-error-description/m-p/75294#M2248</link>
    <description>&lt;P&gt;You're getting this on the &lt;CODE&gt;webAuth.finish&lt;/CODE&gt; line, right? This error indicates that the authorization code you're using is invalid or expired. (These authorization codes currently expire after five minutes.)&lt;/P&gt;

&lt;P&gt;You should use the authorization only once, immediately after receiving it. After that, you can store and re-use the access token instead, without processing the authorization flow again.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2015 01:24:19 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2015-03-19T01:24:19Z</dc:date>
    <item>
      <title>com.dropbox.core.DbxException$BadRequest: {"error_description": "code doesn't exist or has expired", "error": "invalid_grant"}</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-DbxException-BadRequest-quot-error-description/m-p/75293#M2247</link>
      <description>&lt;P&gt;I uploaded successfully few files using the Dropbox API. But now I am receiving this message:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;com.dropbox.core.DbxException$BadRequest: {"error_description": "code doesn't exist or has expired", "error": "invalid_grant"}&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;for this code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  final String APP_KEY = "aaaaaaaaaaaaaaaa";
  final String APP_SECRET = "sssssssssssssss";

  DbxAppInfo appInfo = new DbxAppInfo(APP_KEY, APP_SECRET);

  DbxRequestConfig config = new DbxRequestConfig("JavaTutorial/1.0",
              Locale.getDefault().toString());
  DbxWebAuthNoRedirect webAuth = new DbxWebAuthNoRedirect(config, appInfo);
  // Have the user sign in and authorize your app.
  String authorizeUrl = webAuth.start();
  System.out.println("1. Go to: " + authorizeUrl);
  System.out.println("2. Click \"Allow\" (you might have to log in first)");
  System.out.println("3. Copy the authorization code.");
  String code = "codexxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";


  // Once the user has delivered the authorization code to our app, we can
  // exchange that code for an access token via finish:
  DbxAuthFinish authFinish = webAuth.finish(code);
  String accessToken = authFinish.accessToken;

  DbxClient client = new DbxClient(config, accessToken);
  System.out.println("Linked account: "
              + client.getAccountInfo().displayName);
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 May 2019 09:44:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-DbxException-BadRequest-quot-error-description/m-p/75293#M2247</guid>
      <dc:creator>Aurelian R.</dc:creator>
      <dc:date>2019-05-29T09:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: com.dropbox.core.DbxException$BadRequest: {"error_description": "code doesn't exist or has expired", "error": "invalid_grant"}</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-DbxException-BadRequest-quot-error-description/m-p/75294#M2248</link>
      <description>&lt;P&gt;You're getting this on the &lt;CODE&gt;webAuth.finish&lt;/CODE&gt; line, right? This error indicates that the authorization code you're using is invalid or expired. (These authorization codes currently expire after five minutes.)&lt;/P&gt;

&lt;P&gt;You should use the authorization only once, immediately after receiving it. After that, you can store and re-use the access token instead, without processing the authorization flow again.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2015 01:24:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/com-dropbox-core-DbxException-BadRequest-quot-error-description/m-p/75294#M2248</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-03-19T01:24:19Z</dc:date>
    </item>
  </channel>
</rss>

