Learn how to make the most out of the Dropbox Community here 💙!
Forum Discussion
Ch_P
6 years agoExplorer | Level 3
C# api freeze on any api method.
Hey! My program gets stucked on any dbx.Files method, for example:
var x = await dbx.Files.DownloadAsync(folder + "/" + file);
File is very small, 5 bytes, but it gets stuck anyways. On uploa...
Ch_p1
6 years agoExplorer | Level 3
Hi Grek! Thanks for your reply.
By stuck I mean is doesnt return or executes forever. I have latest Dropbox.api version installed. I see it hangs on awaiting this function and I cant step inside to see where exactly it hangs. Do you have any suggestions?
By stuck I mean is doesnt return or executes forever. I have latest Dropbox.api version installed. I see it hangs on awaiting this function and I cant step inside to see where exactly it hangs. Do you have any suggestions?
Greg-DB
Dropbox Staff
6 years agoWhat do you mean when you say you "cant step inside to see where exactly it hangs"? Did you connect a debugger, and if so, what happened?
Are there any potential issues with your network connection? E.g., is there any firewall, proxy, or other piece of software that may be interfering? It may be worth trying this on another computer/server on a different network connection to see if that may be the issue.
- Ch_p16 years agoExplorer | Level 3There is no problem with connection because as i said before when I am try to upload file it gets upload, just this function never returns.
- Greg-DB6 years ago
Dropbox Staff
Unfortunately I don't know what may be causing this and I can't reproduce this using the code you shared. Please share a sample project that demonstrates the issue so we can reproduce it here and investigate.
- Ch_p16 years agoExplorer | Level 3
Hi Greg!
I returned with piece of code. Can u please point out what is wrong. My application stuck on awaiting download.class Program { static void Main(string[] args) { NotMain(); } static async void NotMain() { var dbx = new Dropbox.Api.DropboxClient("mysecrettoken"); var x = await dbx.Files.DownloadAsync("/Folder/File"); // Exits here with code 0. System.Diagnostics.Debug.Write(await x.GetContentAsStringAsync()); // Never outputs nothing } }
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,972 PostsLatest Activity: 23 hours ago
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!