We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
maoz
4 years agoExplorer | Level 4
files_get_metadata Python API stopped working
Hi,
I am using files_get_metadata Python API to check if a file exists or not as following:
import dropbox
dbx = dropbox.Dropbox( "<LONG KEY>" )
dropboxPath = "/log.txt"
try:
dbx.files_get_metadata( dropboxPath )
print( f"dropboxPath={dropboxPath} exists" )
except dropbox.exceptions.ApiError as exception:
print( f"dropbox.exceptions.ApiError={exception}" )
print( f"dropboxPath={dropboxPath} exception.error.get_path()={exception.error.get_path()}" )
print( f"dropboxPath={dropboxPath} exception.error.get_path().is_not_found()={exception.error.get_path().is_not_found()}" )
except Exception as exception:
print( f"Exception={exception}" )
Above code worked perfectly in the recent years and stopped today. I am getting following output and exception to it:
Exception=BadInputError('<LONG ID>', 'Error in call to API function "files/get_metadata": Unknown API function: /2/files/get_metadata')
Any idea why? The file "log.txt" exists.
Thanks,
Maoz
4 Replies
- tipako4 years agoExplorer | Level 4
Same problem here. I am using this API in an app in production, with thousands of users relying on it. Bug reports start to pour into my mailbox. Would appreciate a quick fix.
- dinaron4 years agoNew member | Level 2
Same, everything is broken. please fix
- maoz4 years agoExplorer | Level 4
Looks like it was fixed. Not getting that error.
- Greg-DB4 years ago
Dropbox Community Moderator
Thanks for reporting this issue. This issue is now fixed and should be working properly. Apologies for any inconvenience this may have caused.
About Discuss Dropbox Developer & API
Make connections with 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!