One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
tecnicxci
3 years agoHelpful | Level 5
Unable to connect to dropbox using the dropbox api to give access to and account
I have updated and app to use the dropbox sdk version 5.2.0, before it used the 4.0.1.
The problem I have now is that when I do:
DbxRequestConfig requestConfig = new DbxRequestConfig(clientIdentifier);
Auth.startOAuth2PKCE(mContext, APP_KEY, requestConfig, scopes);
The app launches the popup dialog to allow an account, but when selecting allow, the popup response with an error saying that it could not connect, I have access to the internet and before updating the sdk this popup dialog worked fine.
Here I attach images to show the error:
The problem was with the scopes I removed this lines and all worked fine:
List<String> scopes = new ArrayList<>(); scopes.add("account_info.read"); scopes.add("files.content.write");
- tecnicxciHelpful | Level 5
The problem was with the scopes I removed this lines and all worked fine:
List<String> scopes = new ArrayList<>(); scopes.add("account_info.read"); scopes.add("files.content.write");
- Greg-DB
Dropbox Staff
Thanks for following up. I'm glad to hear you got this working already.
For reference, it sounds like you're using an app key for an app that hasn't been migrated to scopes yet. This can occur if so if you request scopes. (Apologies for the unhelpful error message!) In order to use the updated app authorization flow to request scopes, you'd need to use an app key for an app that is set to use scopes.
You can migrate an existing app to scopes via the app's page on the App Console.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,941 PostsLatest Activity: 9 hours ago
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 or Facebook.
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!