cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

tipako
Explorer | 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.

dinaron
New member | Level 2

Same, everything is broken. please fix

maoz
Explorer | Level 4

Looks like it was fixed. Not getting that error.

Greg-DB
Dropbox Staff

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?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    maoz Explorer | Level 4
  • User avatar
    dinaron New member | Level 2
  • User avatar
    tipako Explorer | Level 4
What do Dropbox user levels mean?