cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to connect to dropbox using the dropbox api to give access to and account

Unable to connect to dropbox using the dropbox api to give access to and account

tecnicxci
Helpful | Level 5
Go to solution

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:

error_1.jpgerror_2.jpg

 
 

 

 

1 Accepted Solution

Accepted Solutions

tecnicxci
Helpful | Level 5
Go to solution

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");

View solution in original post

2 Replies 2

tecnicxci
Helpful | Level 5
Go to solution

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
Go to solution

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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    tecnicxci Helpful | Level 5
What do Dropbox user levels mean?