We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Itai M.
3 years agoExplorer | Level 4
createSharedLinkWithSettings() falls with shared_link_already_exist error
We're using the following code to create shared links:
sharingClient: DbxUserSharingRequests sharingClient.createSharedLinkWithSettings(path)
DroboxCore SDK version: 5.1.1
Request ID:
aa92...
Здравко
3 years agoLegendary | Level 20
Itai M. wrote:...
Can you please check what causes this failure and suggest the proper way to handle this.
...
Hi Itai M.,
🙂 You question is little bit philosophical. Main subpart of your question could be is there some failure at all?!
In general software exception is a way some function/method (or generally code piece) to return alternative result to calling code. What will be this alternative result? 🤔 Could be anything. Very common is such result to be used as error/failure signal, but this is not mandatory. Interpretation of such alternative result is matter of context. 😉
In your particular case the "failure" is preexistence of the link your are trying to create. Is this a real failure or something acceptable? 🧐 It depends on your application design (i.e. your desire).
How can you handle that? If according to your initial idea preexistence of such link is unexpected..., one way is to signal to the user, for example. Otherwise, you can catch the exception and pop wanted result out from there - there is a "metadata" field matching exactly the normal result when this type of exception gets catch (from that point on you can continue normal application flow). 😉 So finally... the choice is yours.
Hope this helps.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!