Range error [offset > 6], while parsing POPM frame in ID3v2 headerSee original GitHub issue
Bug description I’m trying to read data from an array of file paths. I get the following error:
(node:15553) UnhandledPromiseRejectionWarning: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out of range. It must be >= 0 and <= 6. Received 9 at boundsError (internal/buffer.js:49:9) at Buffer.readUInt8 (internal/buffer.js:137:5) at Function.readData (/home/binyamin/Documents/Coding/musia/node_modules/music-metadata/lib/id3v2/FrameParser.js:129:31) at Function.readFrameData (/home/binyamin/Documents/Coding/musia/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js:90:46) at ID3v2Parser.parseMetadata (/home/binyamin/Documents/Coding/musia/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js:183:40) at ID3v2Parser.parseId3Data (/home/binyamin/Documents/Coding/musia/node_modules/music-metadata/lib/id3v2/ID3v2Parser.js:139:32) (node:15553) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:15553) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Expected behavior Receive metadata Problematic Audio
- Created 4 years ago
- Comments:6 (5 by maintainers)
Top GitHub Comments
Please open a new issue for that one, otherwise my administration becomes a mess.
I am traveling at the moment, and my laptop battery is empty. Therefor that issue may need to wait a bit longer to be solved.
It looks like the POPM “Email to user” field should read as as an ISO-639-2 encoded string after all.
In both your sample files, it consusing that the POPM frame is flagged as UTF-16-with-BOM, since there is no text field which could be read as such. Secondly that the content of the e-mail address