<?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: Performance of Dropbox getCurrentAccount in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468673#M23893</link>
    <description>&lt;P&gt;I wanted to add that we discovered the problem isn't unique to "getCurrentAccount" - whichever method we call first after these two lines of code seems to take 30 seconds or so:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig(APP_NAME);
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We skipped the call to getCurrentAccount() and found the same issue on listFolder(), download(), etc. Seems like whichever function we call first seems to suffer this 30 second penalty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some sort of tracing built into the API that might show us what's going on at a lower level?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2020 14:45:30 GMT</pubDate>
    <dc:creator>tdgvrr</dc:creator>
    <dc:date>2020-11-10T14:45:30Z</dc:date>
    <item>
      <title>Performance of Dropbox getCurrentAccount</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468428#M23880</link>
      <description>&lt;P&gt;I'm running one of the Dropbox samples and getting very slow (&amp;gt;30 seconds) response on a call to getCurrentAccount().&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code looks like this:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;...&lt;BR /&gt;DbxRequestConfig config = new DbxRequestConfig(APPNAME);
client = new DbxClientV2(config, ACCESS_TOKEN);
FullAccount account = client.users().getCurrentAccount();&lt;BR /&gt;...&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;In our tests, the call to "client.users().getCurrentAccount()" runs for about 30 seconds before returning. This is running against the&amp;nbsp;dropbox-core-sdk-3.1.5 JAR file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea why getCurrentAccount() would be so slow?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 06:15:47 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468428#M23880</guid>
      <dc:creator>tdgvrr</dc:creator>
      <dc:date>2020-11-10T06:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance of Dropbox getCurrentAccount</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468442#M23882</link>
      <description>&lt;P&gt;Thanks for the report. This isn't&amp;nbsp;occurring for me, so we'll need to narrow this down. Can you let me know:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Is this only occurring when retrieving the information for one account in particular, or does it also happen for other accounts?&lt;/LI&gt;
&lt;LI&gt;Is this&amp;nbsp;occurring for other methods as well?&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Mon, 09 Nov 2020 19:50:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468442#M23882</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-09T19:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance of Dropbox getCurrentAccount</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468471#M23883</link>
      <description>&lt;P&gt;We've tried three accounts - all seem to perform about the same (all are "PRO" accounts, if that matters).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A few other details that might help:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;This is a command-line tool - we authenticate with a access token we generated on the website.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;All of the other methods seem to run fine....in the snippet I sent, from program start to the getCurrentAccount call runs in about two seconds - then getCurrentAccount consistently runs from 20-40 seconds.&lt;/LI&gt;&lt;LI&gt;This is running on a small but dedicated server with a Gigabit connection - nothing else we do is slow over the network.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The results are repeatable...it's not like it just randomly occurs.&amp;nbsp; &amp;nbsp;&lt;/LI&gt;&lt;LI&gt;We're using Java 1.8 (161).&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Mon, 09 Nov 2020 21:19:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468471#M23883</guid>
      <dc:creator>tdgvrr</dc:creator>
      <dc:date>2020-11-09T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance of Dropbox getCurrentAccount</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468673#M23893</link>
      <description>&lt;P&gt;I wanted to add that we discovered the problem isn't unique to "getCurrentAccount" - whichever method we call first after these two lines of code seems to take 30 seconds or so:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;DbxRequestConfig config = new DbxRequestConfig(APP_NAME);
DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We skipped the call to getCurrentAccount() and found the same issue on listFolder(), download(), etc. Seems like whichever function we call first seems to suffer this 30 second penalty.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there some sort of tracing built into the API that might show us what's going on at a lower level?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 14:45:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468673#M23893</guid>
      <dc:creator>tdgvrr</dc:creator>
      <dc:date>2020-11-10T14:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance of Dropbox getCurrentAccount</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468762#M23899</link>
      <description>&lt;P&gt;Thanks for the additional information. I don't know off hand what may be causing that, and I can't reproduce that behavior&amp;nbsp;myself using that same code. We'll have to dig into it further.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may be able to get some more logging output using:&lt;/P&gt;
&lt;PRE&gt;Logger.getLogger("").setLevel(Level.ALL);
final java.util.logging.ConsoleHandler consoleHandler = new java.util.logging.ConsoleHandler();
consoleHandler.setLevel(Level.ALL);
Logger.getLogger("").addHandler(consoleHandler);&lt;/PRE&gt;
&lt;P&gt;Please share the output if you get any other useful information when using that.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 19:24:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Performance-of-Dropbox-getCurrentAccount/m-p/468762#M23899</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2020-11-10T19:24:02Z</dc:date>
    </item>
  </channel>
</rss>

