cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
The Dropbox Community is looking for feedback from you! Sign up to be a part of our customer panel here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Return {"path/not_found/..."}

Return {"path/not_found/..."}

weerasinghe4
New member | Level 2

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 2

Greg-DB
Dropbox Staff

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?

olavolsf
Explorer | 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.

Who's talking

Top contributors to this post

  • User avatar
    olavolsf Explorer | Level 3
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?
Need more support?