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.

Mp3 is defined twice causing an error

See original GitHub issue

If you have an issue with a specific extension or type

Locate the definition for your extension/type in the db.json file in the mime-db project. Does it look right?

[ ] No. File a mime-db issue. [x] Yes: Go ahead and submit your issue/PR here and I’ll look into it.

mp3 is defined in both audio/mp3 and audio/mpeg causing the following error:

Error: Attempt to change mapping for "mp3" extension from "audio/mp3" to "audio/mpeg". Pass force=true to allow this, otherwise remove "mp3" from the list of extensions for "audio/mpeg".

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
broofacommented, Apr 11, 2018

published in v2.3

0reactions
caubcommented, Apr 11, 2018

I found why, we need to copy types/standard.json, either JSON.parse(JSON.stringify(require('./types/standard'))) or something better in both mime and lite

or yea better, avoiding to mutate, like in your fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

Does "converting" mp3 file two times, makes a difference?
Yes, there will be a difference. Mp3 is a lossy codec that deteriorates with every generation. It's bad practice to use mp3 (or...
Read more >
Javascript console error in Chrome - Stack Overflow
I am wondering what is causing the error in the attached javascript ... A file (mp3 file /soundcap/soundR8OE41366206103418.mp3) is present ...
Read more >
Problems with AudioSegment.from_mp3 #62 - jiaaro/pydub
Hello James, I have Python2.7 (Win) and got latest pydub. When trying to open mp3 file using: song = AudioSegment.from_mp3("b.mp3") (while double checking ......
Read more >
iTunes has wrong length for mp3 files. - Apple Community
I have several mp3 files that iTunes thinks are much longer then they ... This erratic behaviour may be caused be slightly corrupted...
Read more >
How to fix my MP3 player file format not supported ... - Quora
The fact that a file has a name that ends .mp3 does not necessarily mean that it is in MP3 format. Can you...
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