Need to see if your shared folder is taking up space on your dropbox 👨‍💻? Find out how to check here.

Forum Discussion

Kuo Wang's avatar
Kuo Wang
New member | Level 2
10 months ago

Redirect uri didn't work on shiny server

I am new to using OAuth 2 with Dropbox.

I deployed a shiny app on the shinyapp.io server.  The function only tests if I can upload a file to Dropbox.

I tested the app on my local machine, and it worked well. However, when I deployed it on the shinyapp.io server, I set redirect uri as: "https://qml-lab.shinyapps.io/05_merds/oauth2callback/"

My Dropbox app's OAuth 2 redirect uri is also the same.

However, when I try to get authorized, the browser doesn't open the authorization page, and my app log only shows the following log while just waiting:

2025-02-25T05:00:42.706101+00:00 shinyapps[14070350]: Please point your browser to the following url: 2025-02-25T05:00:42.711022+00:00 shinyapps[14070350]: "https://www.dropbox.com/oauth2/authorize?client_id=<My ID>&redirect_uri=https%3A%2F%2Fqml-lab.shinyapps.io%2F05_merds%2Foauth2callback%2F&response_type=code&state=pg0LzPqOZv  "I tried to open the above address manually, but it shows Not Found.

Can anyone tell me what the problem is?

Thanks,

Kuo

1 Reply

  • DB-Des's avatar
    DB-Des
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    10 months ago

    Hi Kuo Wang,

    While we are unable to provide guidance or support for shinnyapp.io, we did check the authorization URL you provided, and it works on our end. Are you able to provide a screenshot of the "Not Found" page you are seeing when you navigate manually to the authorization URL logged by "shinyapps"?

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!