You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

rafaelgomesxyz's avatar
rafaelgomesxyz
New member | Level 2
7 years ago

500 error when authorizing app

Hello. I had initially authorized my app to upload files to its own special folder in my account, and then I disauthorized it for testing purposes. After that, I was never able to authorize it again. Whenever I go to the corresponding "https://www.dropbox.com/oauth2/authorize" URL to authorize it and click on "Allow", I get a 500 error.

 

I noticed that when I click on "Allow" a request is made to "https://www.dropbox.com/1/oauth2/authorize_submit". Isn't that endpoint from v1?

  • Upon some further investigation, I've determined this can happen if you have a deleted file at the path where the app folder for the app would be normally created (e.g., /Apps/<app folder name> if your account is set to the English locale). You can work around this issue by permanently deleting the deleted file at that path via www.dropbox.com. Once you do so, you should be able to authorize the app normally.

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Thanks for the report! We'll look into that 500 error.

    Also, /1/oauth2/authorize_submit is not technically just part of API v1. It's part of the OAuth 2 flow, which is used by both API v1 and API v2. It just has the "/1/" component as a matter of how it was originally implemented.
    • Greg-DB's avatar
      Greg-DB
      Icon for Dropbox Staff rankDropbox Staff

      Upon some further investigation, I've determined this can happen if you have a deleted file at the path where the app folder for the app would be normally created (e.g., /Apps/<app folder name> if your account is set to the English locale). You can work around this issue by permanently deleting the deleted file at that path via www.dropbox.com. Once you do so, you should be able to authorize the app normally.

      • rafaelgomesxyz's avatar
        rafaelgomesxyz
        New member | Level 2

        I had indeed deleted the app's special folder, but that was a long time ago, so it was no longer in the trash. I managed to solve the issue by deleting the Apps folder completely. Thanks!

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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!