You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have code that works fine except when resuming a download where all the file is downloaded. I.e. I see something like this returned from the observable returned by DownloadFromMTDFile:
var dloads = mtdfiles.map((mtd) => {
// See comment above for files.txt download
return mtd.flatMap(function (x,idx) {
common.log.debug("Starting download for " + x);
return downloader.DownloadFromMTDFile(x);}).share();
}).share();
// For each download stream emitted from dloads....
var dloadsFin = dloads.flatMap((x,idx) => {
common.log.debug("Starting dloadsFin for " + idx + "....");
x.subscribe(
function (fd) { common.log.debug('x ' + util.inspect(fd)); },
function (err) { common.log.error('x :' + err); },
function () { common.log.debug('Completed x '); });
return Rx.Observable.empty();
}).share();
I assume that the problem is that the DownloadFromMTDFile tries to return/process HTTP responses, however, there are none (and should be none). I'll take a further look at this to see if I can work out what the root cause is, but my Rx/ramda skills are limits.
The text was updated successfully, but these errors were encountered:
I have code that works fine except when resuming a download where all the file is downloaded. I.e. I see something like this returned from the observable returned by DownloadFromMTDFile:
My code is (I think) relatively simple:
I assume that the problem is that the DownloadFromMTDFile tries to return/process HTTP responses, however, there are none (and should be none). I'll take a further look at this to see if I can work out what the root cause is, but my Rx/ramda skills are limits.
The text was updated successfully, but these errors were encountered: