<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic files_get_metadata Python API stopped working in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638920#M3009</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;files_get_metadata Python API to check if a file exists or not as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import dropbox
dbx = dropbox.Dropbox( "&amp;lt;LONG KEY&amp;gt;" )
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}" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above code worked perfectly in the recent years and stopped today. I am getting following output and exception to it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception=BadInputError('&amp;lt;LONG ID&amp;gt;', 'Error in call to API function "files/get_metadata": Unknown API function: /2/files/get_metadata')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why? The file "log.txt" exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maoz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 06:53:48 GMT</pubDate>
    <dc:creator>maoz</dc:creator>
    <dc:date>2022-11-24T06:53:48Z</dc:date>
    <item>
      <title>files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638920#M3009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;files_get_metadata Python API to check if a file exists or not as following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import dropbox
dbx = dropbox.Dropbox( "&amp;lt;LONG KEY&amp;gt;" )
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}" )&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Above code worked perfectly in the recent years and stopped today. I am getting following output and exception to it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Exception=BadInputError('&amp;lt;LONG ID&amp;gt;', 'Error in call to API function "files/get_metadata": Unknown API function: /2/files/get_metadata')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea why? The file "log.txt" exists.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Maoz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 06:53:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638920#M3009</guid>
      <dc:creator>maoz</dc:creator>
      <dc:date>2022-11-24T06:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638928#M3010</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 07:59:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638928#M3010</guid>
      <dc:creator>tipako</dc:creator>
      <dc:date>2022-11-24T07:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638935#M3012</link>
      <description>&lt;P&gt;Same, everything is broken. please fix&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:12:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638935#M3012</guid>
      <dc:creator>dinaron</dc:creator>
      <dc:date>2022-11-24T08:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638961#M3013</link>
      <description>&lt;P&gt;Looks like it was fixed. Not getting that error.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 09:27:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/638961#M3013</guid>
      <dc:creator>maoz</dc:creator>
      <dc:date>2022-11-24T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/639005#M3015</link>
      <description>&lt;P&gt;Thanks for reporting this issue. This issue is now fixed and should be working properly. Apologies for any inconvenience this may have caused.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 13:18:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/files-get-metadata-Python-API-stopped-working/m-p/639005#M3015</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-11-24T13:18:46Z</dc:date>
    </item>
  </channel>
</rss>

