We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
markham
9 years agoNew member | Level 2
stone_validators.ValidationError
Has anyone else experienced the error dropbox.stone_validators.ValidationErrror: expected type SharedLink, got integer? I got this on line 484 of dropbox/stone_validators.py These recent updates ...
jyotinarang
8 years agoExplorer | Level 4
Hi,
I get another error using a files_list_folder in python which states that -
dropbox.stone_validators.ValidationError: expected type SharedLink, got string - could you suggest why this is happening?
Greg-DB
Dropbox Community Moderator
8 years agojyotinarang You're getting a slightly different error than what was originally reported on this thread, so you're likely hitting a different issue.
It sounds like you're providing a string to the 'shared_link' arg, instead of a SharedLink instance. That is, instead of doing something like this:
shared_link_url = "..."
res = dbx.files_list_folder(path="", shared_link=shared_link_url)
You need to do something like this:
shared_link_url = "..."
res = dbx.files_list_folder(path="", shared_link=dropbox.files.SharedLink(url=shared_link_url))
If that doesn't seem to be the problem, please open a new thread with the details, e.g., the code you're using to reproduce the issue, and we'll take a look.
- jyotinarang8 years agoExplorer | Level 4
Thanks Greg.
This worked for me. This was hard to figure out on my own though.
About 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!