We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Claudia_1982's avatar
Claudia_1982
New member | Level 2
7 years ago

Issue with ListFolderAsync()

Hello,

 

I try to use ListFolderAsync() to get first experience with DropboxApi.

On Dropbox I generated my first app called "FirstTest12345" with permission type "App Folder".  My first test should show me the content of some folder (e.g. root "" or manually generated others "/test"). When I try this, there is only a result when the folder is empty (Count=0). If theres is some content ListFolderAsync seems to run infinite time.

Here my code:

 

var list = await client.Files.ListFolderAsync("some path"); //e.g. "" or "/in"

 

Any help would be appreciated.

Thanks in advance.

  • Nothing appears to be wrong with that code. Can you let me know:

    - what version number of the .NET SDK you have installed.
    - how you're checking that this call runs forever. It should eventually time out if it doesn't complete. Are you sure your program isn't hanging somewhere else? It may be useful to step through with a debugger.
    - if you get any other error/output.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff
    Nothing appears to be wrong with that code. Can you let me know:

    - what version number of the .NET SDK you have installed.
    - how you're checking that this call runs forever. It should eventually time out if it doesn't complete. Are you sure your program isn't hanging somewhere else? It may be useful to step through with a debugger.
    - if you get any other error/output.
    • Claudia_1982's avatar
      Claudia_1982
      New member | Level 2

      You were right. I use VS2017 with .NET 4.7.03056. When I debuged I set the breakpoint at the named function. Then I did one step over (F10) the function to see the content of the "list" parameter. When there was no content in list, which means Count=0, then the debugger stopped at next instruction. When there was content (folders or files) the debugger ran over the next instruction, so it seemed to me, that it hanged at ListFolderAsync....

      After setting more breakpoint after ListFolderAsync it stopped in any case and i could see, that the returnvalue contains everything i want.

       

      Thank you very much.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
325 Following

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!