We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
tdgvrr
6 years agoExplorer | Level 3
Performance of Dropbox getCurrentAccount
I'm running one of the Dropbox samples and getting very slow (>30 seconds) response on a call to getCurrentAccount().
The code looks like this:
... DbxRequestConfig config = new DbxReq...
Greg-DB
Dropbox Community Moderator
6 years agoThanks for the report. This isn't occurring for me, so we'll need to narrow this down. Can you let me know:
- Is this only occurring when retrieving the information for one account in particular, or does it also happen for other accounts?
- Is this occurring for other methods as well?
tdgvrr
6 years agoExplorer | Level 3
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:
DbxRequestConfig config = new DbxRequestConfig(APP_NAME); DbxClientV2 client = new DbxClientV2(config, ACCESS_TOKEN);
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.
Is there some sort of tracing built into the API that might show us what's going on at a lower level?
- Greg-DB6 years ago
Dropbox Community Moderator
Thanks for the additional information. I don't know off hand what may be causing that, and I can't reproduce that behavior myself using that same code. We'll have to dig into it further.
You may be able to get some more logging output using:
Logger.getLogger("").setLevel(Level.ALL); final java.util.logging.ConsoleHandler consoleHandler = new java.util.logging.ConsoleHandler(); consoleHandler.setLevel(Level.ALL); Logger.getLogger("").addHandler(consoleHandler);Please share the output if you get any other useful information when using that.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!