Discuss Dropbox Developer & API
Dears, I am uploading files (large files) and when it is ends, this error appear (azure and linux):
Proxy Error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: Error reading from remote server
I am using ChunkUpload, follow:
using (var stream = armazenaDropBox.Imagem.OpenReadStream()) { int numChunks = (int)Math.Ceiling((double)stream.Length / chunkSize); byte[] buffer = new byte[chunkSize]; string sessionId = null; //armazenaDropBox.progressBar = 0; for (var idx = 0; idx < numChunks; idx++) { //Console.WriteLine("Start uploading chunk {0}", idx); var byteRead = stream.Read(buffer, 0, chunkSize); using (MemoryStream memStream = new MemoryStream(buffer, 0, byteRead)) { if (idx == 0) { var result = await dba.Files.UploadSessionStartAsync(body: memStream); sessionId = result.SessionId; } else { UploadSessionCursor cursor = new UploadSessionCursor(sessionId, (ulong)(chunkSize * idx)); if (idx == numChunks - 1) { await dba.Files.UploadSessionFinishAsync(cursor, new CommitInfo(armazenaDropBox.Folder + "/" + armazenaDropBox.FileName), memStream); } else { await dba.Files.UploadSessionAppendV2Async(cursor, body: memStream); } } } //armazenaDropBox.progressBar = 100; }
The upload is working perfectlly, but appear it.
I see you also opened a support ticket for this, so we'll follow up with you there.
I see you also opened a support ticket for this, so we'll follow up with you there.
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 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!