This project is read-only.

Couldn't retrieve child elements from the server - Dropbox error

Apr 15, 2013 at 7:47 PM
Hello all,

I'm using GetFolder and DownloadFile to retrieve the contents of a folder in a Dropbox "Apps" directory. Occasionally, I'll get the following error:

"Couldn't retrieve child elements from the server"

However it's difficult to consistently reproduce it. My code is fairly simple

ICloudDirectoryEntry publicFolder = dropbox.GetFolder(cloudPath);

foreach (var fof in publicFolder)
      if (fof is ICloudDirectoryEntry)
               ICloudDirectoryEntry cde = fof as ICloudDirectoryEntry;

               string parentFolder = cloudPath + cde.Name + "/";

               foreach (var subDirFile in cde)
                    dropbox.DownloadFile(parentFolder + subDirFile.Name, localDirName);
            dropbox.DownloadFile(cloudPath + fof.Name, localFileName);

Any help would be appreciated.

Note that I am not accessing the Root directory but a directory within the "Apps" folder
on Dropbox (i.e. I do not have full access to the Dropbox folder).