cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

The address is not understood error authentication

Explorer | Level 3

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
Highlighted

Re: The address is not understood error authentication

Dropboxer
Dropboxer

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
Highlighted

Re: The address is not understood error authentication

Dropboxer
Dropboxer

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! 

Highlighted

Re: The address is not understood error authentication

Explorer | Level 3

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

Highlighted

Re: The address is not understood error authentication

Dropboxer
Dropboxer

@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!

Highlighted

Re: The address is not understood error authentication

Explorer | Level 3

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.

Highlighted

Re: The address is not understood error authentication

Dropboxer
Dropboxer

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

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?