question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fetchFromURL can't get metadata from m4a file

See original GitHub issue

I’m getting the following error when trying to read metadata from m4a files with fetchFromURL():

TypeError: 'cancel' can't be called on a locked stream.

It works fine with mp3 and flac files though.

parseBlob() does work with the same m4a files.

Just updated to version 1.2.0, but the problem persists.

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Borewitcommented, Jun 30, 2019

Should be solved in v1.2.1

0reactions
hviannacommented, Jun 29, 2019

Ah nice! I didn’t think of dragging the URL.

In the meantime I wrote a very simple test to try and isolate the problem:

const mm = require('music-metadata-browser');

mm.fetchFromUrl( 'aitai.m4a', { duration: false, skipCovers: true } )
	.then( metadata => {
		console.log( metadata );
	});

Using a simple web server with express:

const path = require('path');
const express = require('express')

const server = express()
server.use( express.static( path.join( __dirname, 'public' ) ) )
server.listen( 8000, 'localhost', () => {
	console.log( '\nServer listening on port 8000!' )
	console.log( '\n\nPress Ctrl+C to exit.' )
})

Works on Chrome. Same error on Firefox.

Thanks again for the prompt replies!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why getMetadata() doesnt work on m4a files in javafx?
I am trying to make a music player using javafx 2.0. I can get details of .mp3 files but I can't get metadata...
Read more >
What kind of metadata can be stored in m4a files? - Super User
What metadata can an m4a file hold and how do I get at it? Metadata for .m4a apple lossless (ALAC) files. My new...
Read more >
iPod to Mac transfer problem. M4a file p… - Apple Community
I have the music in a folder on my desktop, but when I drag it to iTunes, the m4a files have no song...
Read more >
Metadata in m4a format files - ExifTool by Phil Harvey
Greetings! I am using exiftool v11.99 on windows 7. There are m4a files on the Internet where there is the line "Real-time streaming ......
Read more >
Can Windows Media Player read metadata from *.M4A files ...
This thread is locked. You can follow the question or vote as helpful, but you cannot reply to this thread. I have the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found