Cut the Clutter: Test Ignore Files Feature - sign up to become a beta tester  here!

Forum Discussion

white1's avatar
white1
New member | Level 2
2 years ago

Unable to create a shared link using Dropbox API in python

I suddenly have an issue with the Dropbox API. The following error found while trying to create a shared link.

 

stone.backends.python_rsrc.stone_validators.ValidationError: unknown tag 'banned_member'

4 Replies

  • Rich's avatar
    Rich
    Icon for Super User II rankSuper User II
    2 years ago

    white1 wrote:

    stone.backends.python_rsrc.stone_validators.ValidationError: unknown tag 'banned_member'


    Have you tried creating a link manually from the Dropbox website? Do you get a similar message? It sounds like your experiencing this issue.

  • white1's avatar
    white1
    New member | Level 2
    2 years ago

    I don't see any error while creating a shared link manually. We have faced this issue via the Dropbox Python module.

  • Здравко's avatar
    Здравко
    Legendary | Level 20
    2 years ago

    white1 wrote:

    I don't see any error while creating a shared link manually. ...


    Hi white1,

    Yes, you don't receive such an error while create shared link manually, but the user represented with the token in use would. The user is banned actually. Anyway, you just disclosed a mistake in Dropbox Python SDK - cannot handle such tag in a proper way. 😀🤫 Let's see how long will take to be fixed. In meantime find a way to catch this exception in your code and display the accurate error message.

    Good luck.

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

    white1 Thanks for the report. As Rich and Здравко said, this error would occur because the user's account is currently banned from creating links, and note that that applies to the user account for the access token being used, which is not necessarily your own account.

     

    And it appears the Dropbox Python SDK is not currently updated to handle that particular error properly, so it raises a ValidationError instead, but I'll ask the team to fix that up.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,037 PostsLatest Activity: 17 hours ago
413 Following

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 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!