Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I have used dropbox file chooser to download files and filelinks. After I extract the filenames using the file chooser, I want to get more extended metadta.
To do that I first went through Oauth2, then I used the following python codes:
fileid=dbx.files_get_metadata('/'+filename).id
but got the following error message:
File "/home/serve624/lib/python2.7/site-packages/dropbox/base.py", line 449, in files_get_metadata
None,
File "/home/serve624/lib/python2.7/site-packages/dropbox/dropbox.py", line 272, in request
user_message_locale)
ApiError: ApiError('f865f89a9c9f0c3e53e7319f8d99e3cf', GetMetadataError(u'path', LookupError(u'not_found', None)))
Here is another line of python codes:
filesize=dbx.files_get_metadata('/'+filename).size
File "/home/serve624/lib/python2.7/site-packages/dropbox/base.py", line 449, in files_get_metadata
None,
File "/home/serve624/lib/python2.7/site-packages/dropbox/dropbox.py", line 272, in request
user_message_locale)
ApiError: ApiError('25dcb0204364f0edcc35c33231877b85', GetMetadataError(u'path', LookupError(u'not_found', None)))
These two lines of python codes worked for some files from one account but not for files in another account. I don't know what the error message means. Could it be that the file path in the () is not correct? If so how should I compose the file path? How do I get the correct file path from the file chooser?
Thank you for your help.
Thank you so much. You have been really helpful. I am able to get all the metadata I was looking for.
Regards,
Q
Hi there!
If you need more help you can view your support options (expected response time for a 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!