Discuss Dropbox Developer & API
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
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.
Same, everything is broken. please fix
Looks like it was fixed. Not getting that error.
Thanks for reporting this issue. This issue is now fixed and should be working properly. Apologies for any inconvenience this may have caused.
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!