Comments
-
Thanks a lot. You're right.
-
I'll tell you more. I'm testing the problem with unloading, in the debugger, manually turning off the Internet. When an error occurs in UploadSessionAppendV2Async, the message is: "An error occurred while copying content to the stream. - - - System.IO.IOException: Cannot write data to transport connection: The remote host…
-
yes, I am doing error trapping. But when I try to re-upload it doesn't work. although the connection has already been restored. I'm trying it on the bench. It is noticeable that he does not even try to unload. else { try { await dbx2.Files.UploadSessionAppendV2Async(cursor, close:false, body: memStream); // if there is an…
-
Thank you, the solution to the question is the code below. var httpClient = new HttpClient(); httpClient.Timeout = new TimeSpan(1, 0, 0);
-
Привет. Подскажите, как написать код на C # для правильной загрузки больших файлов. using (var response = await dbx.Files.DownloadAsync (PathDrop)) { используя (var fileStream = File.Create (PathLocal)) { response.GetContentAsStreamAsync (). Result.CopyTo (fileStream); } } Я так понимаю, проблема в таймауте. var…