cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
If you’ve changed your email address, now's the perfect time to update it on your Dropbox account and we’re here to help! Learn more here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Unable to create a shared link using Dropbox API in python

Unable to create a shared link using Dropbox API in python

white1
New member | Level 2

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 4

Rich
Super User II

@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
New member | Level 2

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

Здравко
Legendary | Level 20

@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
Dropbox Staff

@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.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    white1 New member | Level 2
  • User avatar
    Rich Super User II
What do Dropbox user levels mean?