We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
weerasinghe4
5 years agoNew member | Level 2
Return {"path/not_found/..."}
HI All
I have an issue in C# dbx.Files.GetTemporaryLinkAsync method
when I pass a root folder it generates the URL and works like a charm but when you send the sub-folder path it returns
{"path/not_found/..."}
Any idea, please
public static string GetTempDropboxImageUrl(string File,string token)
{
var dbx = new DropboxClient(token);
var response = dbx.Files.GetTemporaryLinkAsync(File).Result;
return response.Link;
}
2 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
A 'not_found' error from GetTemporaryLinkAsync indicates "There is nothing at the given path.". Are you sure you're passing in a correct path? How are you retrieving/building the path value?
- olavolsf3 years agoExplorer | Level 3
I don't know if it is useful yet, but I was having the same problem. It was due to the fact that, for reasons of making some checks, I removed the "var dbx = new DroboxClient(AcessToken)" from the "using" clause. When I put it back, everything worked.
Hope this helps someone.
Best regards.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,034 PostsLatest Activity: 3 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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!