"list" argument must be an Array of Buffers
See original GitHub issueThe following code is throwing an error “list” argument must be an Array of Buffers
speakeasy.hotp({ secret: 'ir6jqgomwnldmrhn', encoding: 'base32', counter: speakeasy._counter({}) })
I am doing this in an angular 5 app.
Issue Analytics
- State:
- Created 6 years ago
- Comments:10
Top Results From Across the Web
TypeError: "list" argument must be an Array of Buffers
I found bug it was in app.js file at 58 line, The bug has been fixed by Buffer.isBuffer(chunk) function. Thanks.
Read more >Type Error "list" Argument must be an Array - General
Hi there,. I applied a buffer in my node-red flow and have now encountered this problem in my CMD window, stopping the node-red...
Read more >Node.js Buffer API, for the browser
isBuffer(buf)) { throw new TypeError('"list" argument must be an Array of Buffers') } buf.copy(buffer, pos) pos += buf.length } return buffer }
Read more >Buffer | Node.js v19.3.0 Documentation
Specifically, the TypedArray variants accept a second argument that is a mapping function that is invoked on every element of the typed array:....
Read more >TypeError: "list" argument must be an Array of Buffers while ...
TypeError: "list" argument must be an Array of Buffers while reading a tag.
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
Solved, In “node_modules/speakeasy/index.js” replace from line 39 to 41 with this code
In case anyone had an issues with this. I used @ygweric code more or less but here I added full code (with dependencies and toHex implementation). For base32 decoding, I used `hi-base32: “^0.5.0” in my package.json