cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Help us get a better understanding of what this Community means to you by taking our quick survey over here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1
Ask
2
Reply and help

Re: files_get_metadata Python API stopped working

files_get_metadata Python API stopped working

maoz
Explorer | Level 4

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 4

Re: files_get_metadata Python API stopped working

tipako
New member | Level 2

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.

Re: files_get_metadata Python API stopped working

dinaron
New member | Level 2

Same, everything is broken. please fix

Re: files_get_metadata Python API stopped working

maoz
Explorer | Level 4

Looks like it was fixed. Not getting that error.

Re: files_get_metadata Python API stopped working

Greg-DB
Dropboxer

Thanks for reporting this issue. This issue is now fixed and should be working properly. Apologies for any inconvenience this may have caused.

Need more support?