cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more 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: 

The address is not understood error authentication

The address is not understood error authentication

FSUInnovation
Explorer | Level 4
Go to solution

When trying to authenticate my web platform for file upload using the 0auth2 code flow, I experienced a error. I got my php code to use a header to reach the correct dropbox url for 0auth which worked. I log in, and press accept to allow the app to work with my account, then I get a error in firefox "The address was not understood" for the url https://www.dropbox.com/1/oauth2/authorize_submit that followed hanging my user account registration on that step. I never did 0auth2 before, but my redirect url was never reached and can't continue the user account registration on my site correctly as a result.

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

Thanks! First, note that this should start with "https://www.dropbox.com/oauth2/authorize", not "https://www.dropbox.com/2/oauth2/authorize". That is, you have an extra "2/". 

Also, please try adding the protocol to your redirect URI (both in the authorize URL and pre-registered for your app on the app's page on the App Console). That is, use "http://localhost:8080/FSUInnovation/InternInsert.php" instead of "localhost:8080/FSUInnovation/InternInsert.php".

View solution in original post

5 Replies 5

Greg-DB
Dropbox Staff
Go to solution

The OAuth app authorization flow seems to be working successfully for me in Firefox. Can you share the specific steps to reproduce this issue? Thanks in advance! 

FSUInnovation
Explorer | Level 4
Go to solution

I use the header in my php page to load to dropbox 0auth. I was able to see the app, log in, and enable the app to the given account. However, instead of bringing me to the localhost8080 uri I specified in the 0auth api url, I was stopped on the way to the dropbox link I showed above. Thus, my account registration process on my site was halted at that dropbox link rather than proceeding me to the redirect uri I specified in the dropbox 0auth api call with header.

notunderstood.PNG

Greg-DB
Dropbox Staff
Go to solution

@FSUInnovation Can you share some more detail on how exactly I can reproduce this? Or, perhaps you can share a short screencast showing it? I'm not able to reproduce this kind of error when I try the authorization flow myself (or even by browsing directly to the URL in the screenshot). Thanks!

FSUInnovation
Explorer | Level 4
Go to solution

header("Location: https://www.dropbox.com/2/oauth2/authorize?client_id=4s9vxyownku3sp2&response_type=token&redirect_ur...");

This is the header I used to load onto the 0auth page.

Greg-DB
Dropbox Staff
Go to solution

Thanks! First, note that this should start with "https://www.dropbox.com/oauth2/authorize", not "https://www.dropbox.com/2/oauth2/authorize". That is, you have an extra "2/". 

Also, please try adding the protocol to your redirect URI (both in the authorize URL and pre-registered for your app on the app's page on the App Console). That is, use "http://localhost:8080/FSUInnovation/InternInsert.php" instead of "localhost:8080/FSUInnovation/InternInsert.php".

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    FSUInnovation Explorer | Level 4
What do Dropbox user levels mean?