jeanbmar / s3-sync-client

AWS CLI s3 sync command for Node.js
MIT License
80 stars 22 forks source link

upload not progressing #66

Closed fusionbeam closed 5 months ago

fusionbeam commented 5 months ago

Hi,

I am trying to upload a local folder on Node 18.7 on Windows.

const monitor = new TransferMonitor();
    monitor.on('progress', (progress) => console.log(progress));
    const timeout = setInterval(() => console.log(monitor.getStatus()), 2000);
    try {
        await sync(path, `s3://s3.url/${carparkId}-${workstation}`, 
                {
                    monitor, 
                    dryRun: true,
                    commandInput: {
                        ACL: 'public-read',
                },
        });
    } finally {
        clearInterval(timeout);
    }

On some windows machines this fails, there is no progress and it keeps trying ...

{ size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } } { size: { current: 0, total: 0 }, count: { current: 0, total: 0 } }

Any pointers on how to troubleshoot ?

Thanks, R

fusionbeam commented 5 months ago

same behaviour on node 20.11.1

fusionbeam commented 5 months ago

figured it out.