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