Same issue again 24/04/24
@ronan4 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:
Thanks Greg.
## python version
3.11.7
## dropbox version
C:\Windows\System32>pip show dropboxName: dropboxVersion: 11.36.2Summary: Official Dropbox API ClientHome-page: http://www.dropbox.com/developersAuthor: DropboxAuthor-email: dev-platform@dropbox.comLicense: MIT LicenseLocation: C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packagesRequires: requests, six, stoneRequired-by:
## error:
metadata = dbx.files_get_metadata(file_path)Traceback (most recent call last):File "<pyshell#177>", line 1, in <module>metadata = dbx.files_get_metadata(file_path)File "C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\base.py", line 1671, in files_get_metadatar = self.request(File "C:\Users\ronan\AppData\Local\Programs\Python\Python311\Lib\site-packages\dropbox\dropbox_client.py", line 351, in requestraise ApiError(res.request_id,dropbox.exceptions.ApiError: ApiError('fd8b5fde18204a0baf24422ebdff53f6', GetMetadataError('path', LookupError('not_found', None)))
Thanks for following up with the additional information. I see in this case you are getting a "path/not_found" error.
A "path/not_found" Dropbox API error indicates that the API call failed because there was nothing currently found at the specified path in the connected account under the relevant root. For example, this can happen if there's a mistake or typo in the path 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.
path
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 "/folder/example.csv". You can find more information on path formats here.
"/folder/example.csv"
Here are several things you can check in particular to debug this:
""
path_lower
id
"/Apps/<app folder name>/folder/example.csv"
Thanks for your help Greg. Nothing has changed in my file structure since the code last ran successfully, and I am using the same tokens that I previously used.
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.
If you need help checking on that specifically for your account, please feel free to open an API ticket here.