cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
We are making some updates so the Community might be down for a few hours on Monday the 11th of November. Apologies for the inconvenience and thank you for your patience. You can find out more 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: 

C# API SDK ListFolderAsync doesn't work

C# API SDK ListFolderAsync doesn't work

Platfus
New member | Level 2
Go to solution

Hi! 

I'm trying to list all files in a public folder which Url address I've been given, but I'm getting an error.

Here's my code, its pretty basic:

 

string url = "https://www.dropbox.com/sh/{ABCD}/{EFGH}?dl=0";
using (var dbx = new DropboxClient("MY TOKEN"))
{
     var sharedLink = new SharedLink(url);
     var folderContent = dbx.Files.ListFolderAsync(path: "", sharedLink: sharedLink).Result;

}

 

And the error says:

AdditionalInfo: System.AggregateException: One or more errors occurred. ()
---> Dropbox.Api.RetryException
at Dropbox.Api.DropboxRequestHandler.RequestJsonString(String host, String routeName, String auth, RouteStyle routeStyle, String requestArg, Stream body)
at Dropbox.Api.DropboxRequestHandler.RequestJsonStringWithRetry(String host, String routeName, String auth, RouteStyle routeStyle, String requestArg, Stream body)
at Dropbox.Api.DropboxRequestHandler.Dropbox.Api.Stone.ITransport.SendRpcRequestAsync[TRequest,TResponse,TError](TRequest request, String host, String route, String auth, IEncoder`1 requestEncoder, IDecoder`1 resposneDecoder, IDecoder`1 errorDecoder); Request Id: 14f0484e05dc4439bba8d2506eaea6a0
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at System.Threading.Tasks.Task`1.get_Result()

 

I also tried to send a HTTP request via Postman, but I just get 500 Internal Server Error. Is there something wrong with this endpoint and I just need to do it some other ways?

1 Accepted Solution

Accepted Solutions

Platfus
New member | Level 2
Go to solution
3 Replies 3

Platfus
New member | Level 2
Go to solution

Greg-DB
Dropbox Staff
Go to solution

Thanks, yes, we're aware of and are investigating this issue.

Greg-DB
Dropbox Staff
Go to solution

This should be working again now. Please let us know if you're still seeing any issues. Thanks!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    Platfus New member | Level 2
What do Dropbox user levels mean?