Curious about A, B, C, and D drives? Learn what they mean and how to use them effectively with Dropbox in this handy guide! - check it out now!
Forum Discussion
kmsbs
7 years agoExplorer | Level 4
path not found error
At time of downloading of file from dropbox i got error :
com.dropbox.core.v2.files.DownloadErrorException: Exception in 2/files/download: {".tag":"path","path":"not_found"}
i want to download details_item file
Yes, the PKCE flow in particular is a version of the OAuth 2 authorization flow that doesn't require the app secret, meant for client-side apps where an app secret can't be kept secret. It does so by using a 'code_challenge' on the /oauth2/authorize step and corresponding 'code_verifier' on the following /oauth2/token step, instead of the app secret. Likewise, it does not require the app secret when performing a refresh call. You can find more information in the OAuth Guide and authorization documentation.
Specifically, the /oauth2/token request using a refresh token that was retrieved via the PKCE flow to get a new short-lived access token without using the app secret would look like this:
curl https://api.dropbox.com/oauth2/token \ -d refresh_token=<REFRESH_TOKEN> \ -d grant_type=refresh_token \ -d client_id=<APP_KEY>
7 Replies
Sort By
- Greg-DB
Dropbox Staff
That error indicates that there's nothing at the path you're supplying to the call.
I see that you may have a typo causing this issue. In your post, you said you want to download "details_item", but in the screenshot of your account I see your filename has a typo: "deatils_item.json". Please correct the typo or the path value you're supplying to fix this.
- kmsbsExplorer | Level 4Here i only indicate that i want to download this file but in code i entered correct path and name with .json
- Greg-DB
Dropbox Staff
When you say you're using the "correct" path, are you accounting for the typo? (The typo is the misplaced 'a' in "deatils".)
To be clear, based on the screenshot you supplied, the path you would need to use would be:
- if you're using a full Dropbox app: "/Apps/AndroidDbAppStorage/deatils_item.json"
- if you're using the app with the app folder permission for that "AndroidDbAppStorage" app folder: "/deatils_item.json"
Additionally, make sure you're using an access token for the right account.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,958 PostsLatest Activity: 3 hours ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!