<?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 Re: files_get_metadata Python API stopped working in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766098#M33511</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1582556"&gt;@ronan4&lt;/a&gt; I just tried this out and I'm not able to reproduce that issue, so we'll need some more information so we can look into this for you. Please share:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/LI&gt;
&lt;LI&gt;the full text of any error or unexpected output&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 24 Apr 2024 13:06:12 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2024-04-24T13:06:12Z</dc:date>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766036#M33510</link>
      <description>&lt;P&gt;Same issue again 24/04/24&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 08:51:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766036#M33510</guid>
      <dc:creator>ronan4</dc:creator>
      <dc:date>2024-04-24T08:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766098#M33511</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1582556"&gt;@ronan4&lt;/a&gt; I just tried this out and I'm not able to reproduce that issue, so we'll need some more information so we can look into this for you. Please share:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;the name and version number of the platform and SDK/library you are using, if any&lt;/LI&gt;
&lt;LI&gt;the steps to reproduce the issue, including relevant code snippet(s), but don't include any access or refresh token(s)&lt;/LI&gt;
&lt;LI&gt;the full text of any error or unexpected output&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:06:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766098#M33511</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-24T13:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766099#M33512</link>
      <description>&lt;P&gt;Thanks Greg.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## python version&lt;/P&gt;&lt;P&gt;3.11.7&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## dropbox version&lt;/P&gt;&lt;P&gt;C:\Windows\System32&amp;gt;pip show dropbox&lt;BR /&gt;Name: dropbox&lt;BR /&gt;Version: 11.36.2&lt;BR /&gt;Summary: Official Dropbox API Client&lt;BR /&gt;Home-page: &lt;A href="http://www.dropbox.com/developers" target="_blank"&gt;http://www.dropbox.com/developers&lt;/A&gt;&lt;BR /&gt;Author: Dropbox&lt;BR /&gt;Author-email: dev-platform@dropbox.com&lt;BR /&gt;License: MIT License&lt;BR /&gt;Location: C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packages&lt;BR /&gt;Requires: requests, six, stone&lt;BR /&gt;Required-by:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## error:&lt;/P&gt;&lt;P&gt;metadata = dbx.files_get_metadata(file_path)&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "&amp;lt;pyshell#177&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;metadata = dbx.files_get_metadata(file_path)&lt;BR /&gt;File "C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\base.py", line 1671, in files_get_metadata&lt;BR /&gt;r = self.request(&lt;BR /&gt;File "C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\dropbox_client.py", line 351, in request&lt;BR /&gt;raise ApiError(res.request_id,&lt;BR /&gt;dropbox.exceptions.ApiError: ApiError('fd8b5fde18204a0baf24422ebdff53f6', GetMetadataError('path', LookupError('not_found', None)))&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:17:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766099#M33512</guid>
      <dc:creator>ronan4</dc:creator>
      <dc:date>2024-04-24T13:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766101#M33513</link>
      <description>&lt;P&gt;Thanks for following up with the additional information. I see in this case you are getting a "path/not_found"&amp;nbsp; error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A "path/not_found" Dropbox API error indicates that the API call failed because there was nothing currently found at the specified &lt;CODE&gt;path&lt;/CODE&gt; in the connected account under the relevant root. For example, this can happen if there's a mistake or typo in the &lt;CODE&gt;path&lt;/CODE&gt; value the app supplies, if the file/folder has been renamed, moved, or deleted from that path, if the app is not connected to the correct account for that particular path, etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When specifying the path, your 'file_path' variable value in this case, make sure you provide the full and accurate path for the desired file under the relevant root. For example, if you have a file named "example.csv" inside a folder named "folder", the path would be &lt;CODE&gt;"/folder/example.csv"&lt;/CODE&gt;. You can find &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#path-formats" target="_blank" rel="noopener noreferrer"&gt;more information on path formats here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here are several things you can check in particular to debug this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL dir="auto"&gt;
&lt;LI&gt;Make sure you're using a currently accurate &lt;CODE&gt;path&lt;/CODE&gt; value: You can use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" rel="noopener noreferrer" target="_blank"&gt;files_list_folder&lt;/A&gt; and &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder_continue" rel="noopener noreferrer" target="_blank"&gt;files_list_folder_continue&lt;/A&gt; to list the contents of a folder so you can check what the correct &lt;CODE&gt;path&lt;/CODE&gt; values would be for items in those folder(s). To list the root, set &lt;CODE&gt;path&lt;/CODE&gt; to the empty string &lt;CODE&gt;""&lt;/CODE&gt; when calling &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.files_list_folder" rel="noopener noreferrer" target="_blank"&gt;files_list_folder&lt;/A&gt;. You can use the &lt;CODE&gt;path_lower&lt;/CODE&gt; or &lt;CODE&gt;id&lt;/CODE&gt; values returned for the files/folders in that folder to interact with those files/folders.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL dir="auto"&gt;
&lt;LI&gt;Make sure you're connected to the correct account for the &lt;CODE&gt;path&lt;/CODE&gt; value you're using: You can use &lt;A href="https://dropbox-sdk-python.readthedocs.io/en/latest/api/dropbox.html#dropbox.dropbox_client.Dropbox.users_get_current_account" rel="noopener noreferrer" target="_blank"&gt;users_get_current_account&lt;/A&gt; to check which account the app is connected to.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL dir="auto"&gt;
&lt;LI&gt;Make sure you're using app folder-relative paths, if your app is registered for the "app folder" access type: Apps with the "app folder" access type can only access the contents of the special app folder that gets automatically created for it. If your app has the "app folder" access type, then it will only be able to access files in the app folder, and the root for any path value supplied by that app will automatically be the app folder root. You can find &lt;A href="https://www.dropbox.com/developers/reference/developer-guide#app-permissions" target="_blank" rel="noopener noreferrer"&gt;more information on app permissions here&lt;/A&gt;. For example, If your app has the app folder access type and you're trying to access something you can see on the Dropbox web site at &lt;CODE&gt;"/Apps/&amp;lt;app folder name&amp;gt;/folder/example.csv"&lt;/CODE&gt;, you should only send the &lt;CODE&gt;path&lt;/CODE&gt; value as &lt;CODE&gt;"/folder/example.csv"&lt;/CODE&gt;.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL dir="auto"&gt;
&lt;LI&gt;Make sure you're accessing the relevant root: When using an app with the "full Dropbox" access type, API calls default to the member folder, but if you're trying to access the "team space" (only applicable to members of a team with the "team space" configuration), you'll need to configure that as the root explicitly, as covered in &lt;A href="https://developers.dropbox.com/dbx-team-files-guide" target="_blank" rel="noopener noreferrer"&gt;the Team Files Guide&lt;/A&gt;.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:26:20 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766101#M33513</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-24T13:26:20Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766104#M33514</link>
      <description>&lt;P&gt;Thanks for your help Greg.&amp;nbsp; Nothing has changed in my file structure since the code last ran successfully, and I am using the same tokens that I previously used.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:32:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766104#M33514</guid>
      <dc:creator>ronan4</dc:creator>
      <dc:date>2024-04-24T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: files_get_metadata Python API stopped working</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766106#M33516</link>
      <description>&lt;P&gt;If you account is on a team, it's possible your team recently migrated to a new team configuration, in which case the last list item in my previous message would be relevant. You can find information on that in the guide linked there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help checking on that specifically for your account, please feel free to &lt;A href="https://www.dropbox.com/developers/contact" target="_blank"&gt;open an API ticket here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Apr 2024 13:39:37 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Re-files-get-metadata-Python-API-stopped-working/m-p/766106#M33516</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2024-04-24T13:39:37Z</dc:date>
    </item>
  </channel>
</rss>

