Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
I have these few lines of code in my ASP.net app to get files from DropBox.
And I get no error but it DOES NOT WORK? nothing happens. This code is in an Async function
an it does get invoked correctly, etc, etc. Folders are correct. App in DropBox is correct. My Token is correct. Any help would be much appreciated. Thank you.
Dim myDbClient As New DropboxClient("MyToken")
myDbClient.Files.DownloadAsync("/" + folder + "/" + fileName).ConfigureAwait(False)
Dim folder = "Mike_Lino_Taxi_App" 'dropbox folder name
Dim fileName = "lino123A.txt" 'dropbox file name
response = Await myDbClient.Files.DownloadAsync("/" + folder + "/" + fileName).ConfigureAwait(False)
Dim bytes = Await response.GetContentAsByteArrayAsync().ConfigureAwait(False)
Using fileStream = File.Create("C:\Projects\Mike\lino777.txt") ' local path
fileStream.Write(bytes, 0, bytes.Length)
End Using
Thank you for your response Greg.
This is the line that fails:
Dim response As IDownloadResponse(Of FileMetadata) = Await myDbClient.Files.DownloadAsync("/" + folder + "/" + fileName)
I have a Try Catch in my code and error is: "An error occurred when send the request."
This error message is too general. I checked all my folders, names, etc. All looks good.
any help would be appreciated. Is there any way of getting more details about this error. Can I get some trace log or something?
Thanks again.
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!