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
It looks like no matter what asset file is specified as a URL param this handler is returning false.
I haven't yet tried to remove it but it looks like just removing that early return would see the desired functionality.
workaround that downloads a specific file from the all.zip
exportasyncfunctiondownloadTask(taskId: Uuid): Promise<string>{consturl=`http://nodeodm:3000/task/${taskId}/download/all.zip`;constoutputDest=path.join(os.tmpdir(),`${taskId}.laz`);constres=awaitaxios({method: 'get', url,responseType: 'stream'});// looking for odm_georeferencing/odm_georeferenced_model.laz in the zipconstws=fs.createWriteStream(outputDest);constzipStream=unzip.Parse();res.data.pipe(zipStream).on('entry',functionunzipFile(entry: unzip.Entry){if(entry.path==='odm_georeferencing/odm_georeferenced_model.laz'){entry.pipe(ws);}else{entry.autodrain();}});constzipPromise=newPromise((resolve,reject)=>{zipStream.on('close',resolve);zipStream.on('error',reject);});constwritePromise=newPromise((resolve,reject)=>{ws.on('close',resolve);ws.on('error',reject);});awaitPromise.all([zipPromise,writePromise]);returnoutputDest;}
It looks like no matter what asset file is specified as a URL param this handler is returning false.
I haven't yet tried to remove it but it looks like just removing that early return would see the desired functionality.
NodeODM/libs/Task.js
Line 207 in 994d049
The text was updated successfully, but these errors were encountered: