cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Want to learn some quick and useful tips to make your day easier? Check out how Calvin uses Replay to get feedback from other teams at Dropbox 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: 

I am getting the error "Error in call to API function "files/download"" when uploading and downloading the files on dropbox?

I am getting the error "Error in call to API function "files/download"" when uploading and downloading the files on dropbox?

Manjit S.
New member | Level 1

I am using the DropBox .net sdk in my project and I have a Folder "Test" and file "TestFile" in this folder in my dropbox ,now i am trying to download this "TestFile" by using the following code by passing folder="Test",file="TestFile" :

async Task Download(DropboxClient dbx, string folder, string file)
{
    using (var response = await dbx.Files.DownloadAsync(folder + "/" + file))
    {
        Console.WriteLine(await response.GetContentAsStringAsync());
    }
}



But now i am getting the following error:

Error in call to API function "files/download": HTTP header "Dropbox-API-Arg": path: 'TestDBX/VSDeploymentFailure.txt' did not match pattern '((/|id:).*)|(rev:[0-9a-f]{9,})'

 
2 Replies 2

Steve M.
Dropbox Staff

You need a slash at the beginning of the path.

Manjit S.
New member | Level 1

Thanks @Steve M. 

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Manjit S. New member | Level 1
  • User avatar
    Steve M. Dropbox Staff
What do Dropbox user levels mean?