Closed johnbradley closed 6 years ago
This might could occur if we received too few bytes from an earlier GET request, which raises PartialChunkDownloadError which will then retry, in this scenario actual_bytes_read
doesn't get reset which could cause this error.
User was downloading a project via
ddsclient download -p <projectname> --include <filepath>
.Error:
I was unable to reproduce the issue the same file downloaded fine for me. In this place in the code we are reading from a GET request with
Range
headers delimited to the part of the file we are downloading. So we should only receive the amount we are expecting. This exception was added to catch the unlikely case that we received more than we asked for.