RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"
See original GitHub issuebuffer.js:269
throw err;
^
RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"
at Function.alloc (buffer.js:278:3)
at new Buffer (buffer.js:180:19)
at NodeID3.getTagsFromBuffer (C:\test\nodejs\node_modules\node-id3\index.js:328:31)
at NodeID3.read (C:\test\nodejs\node_modules\node-id3\index.js:226:25)
at NodeID3.update (C:\test\nodejs\node_modules\node-id3\index.js:269:32)
Test code:
var nodeID3 = require('node-id3');
let path = 'giuseppe-tomasi-di-lampedusa-der-leopard-1-4.mp3';
let tags = {
title: 'Giuseppe Tomasi di Lampedusa: Der Leopard (1/4)',
album: 'BR 2 | radioTexte'
};
let success = nodeID3.update(tags, path);
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
The value "4191390185" is invalid for option "size"
RangeError [ERR_INVALID_OPT_VALUE]: The value "4191390185" is invalid for option "size"
Read more >TypeError [ERR_INVALID_OPT_VALUE]: is invalid for option ...
The first parameter of dns.lookupService() is address , not host . According to Node.js document: dns.lookupService(address, port, callback).
Read more >Error: Unknown RangeError (#773) · Issues - Antora - GitLab
Error: Unknown RangeError [ERR_INVALID_OPT_VALUE]: See cause (url: ... The value "2247965231" is invalid for option "size" at Function.
Read more >The value "NaN" is invalid for option size - General Discussion
We are using the Sales Order object as a web service, and it occasionally returns "The value "NaN" is invalid for option "size""....
Read more >Range error - The value "NaN" is invalid - Node-RED Forum
Errr, you are starting Node-Red from the command prompt. There is a problem with what the PLC is sending to Node-Red . There...
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 Free
Top 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

@SharkAttack86 Thank you, the problem with your file was due to the usage of an older version (ID3v2.2.0) that was not supported by node-id3. I’ve added basic read support (text frames + picture) and published a new version.
@RoyceTheBiker @freakysmurf There’s a possibility that your issue is a different one with the same outcome (alloc overflowing), would you mind sending me your failing mp3? In the meantime, I’ve added a workaround so that alloc is not called if it would overflow. If there’s a different issue with your mp3, the tags after the failing one would just not get read.
@Zazama Thank you. It works wonderfully with that one