Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

Moin P.'s avatar
Moin P.
New member | Level 1
10 years ago

Error in generating token file through DropBox Token Authorization Tool

Hello All,
I am using SharpBox API to connect my .net application and DropBox.
But when we generating token through DropBox Token Authorization Tool it show me Error Message (404) Page Not Found.
Please help me.
Thanks in advance.

Regards,
Moin R. Pathan

7 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    What's the URL for the page you get a 404 on? Can you share the relevant code?

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Can you share the specific steps to reproduce this problem so we can look into it? Thanks in advance!

  • Ping H.'s avatar
    Ping H.
    New member | Level 1
    10 years ago
    1. I created my appkey and app secret today
    2. I ran DropBoxTokenIssuer.exe (delivered with SharpBox installation) and filled out the key and secret, and specified c:\TestToken.txt as my output file. It says "PingTest would like access to its own folder, Apps › PingTest, inside your Dropbox". There are "Cancel" and "Allow" button below this message.
    3. I clicked on "Allow" - got this error: The website cannot display the page HTTP 500
      Most likely causes: The website is under maintenance. The website has a programming error.

    I do have a folder named "PingTest" in my dropbox account; I also have dropbox desktop client installed on my machine.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    Thanks! That's helpful. I was able to reproduce this issue, and it looks like the 500 error is actually being returned by sharpox.codeplex.com (which is presumably a typo in the code which should be sharpbox.codeplex.com), after dropbox.com redirects there. That being the case, this is something the developer of DropBoxTokenIssuer.exe/sharpox.codeplex.com will need to fix:

    https://www.dropbox.com/s/1z4m08xd0r8puas/Screenshot%202015-07-08%2015.22.34.png?dl=0

    Sorry I can't be of more help!

  • Ping H.'s avatar
    Ping H.
    New member | Level 1
    10 years ago

    I am wondering: dropbox.com website itself does not provide this tool? It generated my appkey and secert for me, it seems a resonable request that it should also provide this tool to generate token file.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 years ago

    The token this tool generates is called an "access token", which is user-specific. Normally, a Dropbox API app is used for a large number of users (not just the developer/owner of the app). That being the case, the normal way to get a token is to send each user through an OAuth flow (as the tool does) and store the token. (The user normally doesn't need to see or handle the token themselves.)

    If you do want to be able to quickly get an access token for an app on your own account though, the App Console does have a button for generating one. Note that it generates an OAuth 2 access token though, whereas the DropBoxTokenIssuer.exe tool retrieves an OAuth 1 access token.

About Dropbox API Support & Feedback

Node avatar for 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!