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
foongzy
5 months agoNew member | Level 2
Not found error when creating shared link
Hi all, I have a backend hosted in pythonanywhere that has this code snippet. It basically uploads the file and creates a sharing link from that uploaded file.
dbx = dropbox.Dropbox(dr...
- 5 months ago
Hi foongzy,
It's good idea to dump your var 'filename'. I tried to reproduce your issue but everything works (despite sharing_create_shared_link is deprecated already). Let's see if the filename is some special case.
PS: By the way something aside - it's time to think of moving to use refresh token! No long lived access token is issued already, but only short lived. If you need to reissue your access token, it wouldn't work anymore. Just keep in mind.
Здравко
5 months agoLegendary | Level 20
Hi foongzy,
It's good idea to dump your var 'filename'. I tried to reproduce your issue but everything works (despite sharing_create_shared_link is deprecated already). Let's see if the filename is some special case.
PS: By the way something aside - it's time to think of moving to use refresh token! No long lived access token is issued already, but only short lived. If you need to reissue your access token, it wouldn't work anymore. Just keep in mind.
- foongzy5 months agoNew member | Level 2Hi @Здравко,
Yea, I tried the same code in jupyter notebook and it worked, that's why found it weird. I did more digging and changed sharing_create_shared_link to
sharing_create_shared_link_with_settings and it works now. Not too sure what hidden issues prevented sharing_create_shared_link from working. And yes, I am using refresh token to initialise Dropbox. Thanks for the help and tips! - foongzy5 months agoNew member | Level 2Hi @Здравко,
Yea, I tried the same code in jupyter notebook and it worked fine too, not sure what's wrong. I did more digging and changed sharing_create_shared_link to sharing_create_shared_link_with_settings and it works. Not sure what hidden issues prevented the other from working. And yes I am using refresh token. Thanks for the help and tips!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,883 PostsLatest Activity: 8 hours agoIf 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!