parseStream on s3 stream not working - no errors, but execution halts
See original GitHub issueBug description
For some reason, mm.parseStream
fails to work. My code doesn’t throw any exceptions, but the execution halts at that point.
Expected behavior
I expected parseStream
to work properly.
const S3 = require('aws-sdk/clients/s3');
const s3 = new S3();
const mm = require('music-metadata');
(async function() {
const stream = s3
.getObject({
Bucket: 'my-bucket',
Key: 'test.wav',
})
.createReadStream();
const data = await mm.parseStream(stream);
console.log('we never get here :(', data);
})();
Issue Analytics
- State:
- Created 4 years ago
- Comments:30 (18 by maintainers)
Top Results From Across the Web
Troubleshoot data delivery failure between Kinesis and S3
I'm trying to send data from Amazon Kinesis Data Firehose to my Amazon Simple Storage Service (Amazon S3) bucket, but it fails. How...
Read more >Parse csv file from S3 using Lambda and Node Stream
The issue with your code is that it's not correctly dealing with the asynchronous nature of JavaScript. Specifically, your code is exiting ...
Read more >8 Must-Know Tricks to Use S3 More Effectively in Python
Starting from line 9, we first upload a CSV file without explicitly specifying the content type. When we then check how this object's...
Read more >Hi, I'm having issues using the "copy into" command. I'm trying ...
I'm trying to copy a file from AWS S3 bucket into a table in snowflake ... actually load data, but will attempt to...
Read more >Resolve issues with uploading large files in Amazon S3
Note: If you use the Amazon S3 console, the maximum file size for uploads is 160 GB. · Important: If you receive errors...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
But music-metadata knows. Via the ITokenizer the SomeS3orHttpRangedReader would be able to calculate this. I am considering to implement something like that, because I have already done it for the browser.
Understood. Don’t worry, this is an area which has my interest. In addition to that, I see a growing number of users reading directly from cloud storage.
Should be solved, sorry I cannot easily prevent reading the entire WAV via a stream is not something I can prevent here; see #283.