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.

If I try to put array buffer into a db that has valueEncoding set to ‘binary’ I get an error about

message: "value cannot be an empty ArrayBuffer"
name: "WriteError"

as far as I can tell this is due to it being improperly turned into a Uint8 at some point, I managed to trace it to here where the array Buffer failed the Buffer.isBuffer test, but then when new Buffer(ArrayBuffer) is called it uses ArrayBuffer.prototype.length instead of ArrayBuffer.prototype.byteLength, so I’ll likely have to open an issue there as well

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ferosscommented, May 25, 2018

Btw, my comment was from 2014! I think Node.js is moving towards supporting Uint8Array and ArrayBuffer in addition to Buffer for built-in modules like fs, etc. Just FYI

1reaction
ralphtheninjacommented, May 24, 2018

@vweevers We can take @feross comment and add to UPGRADING.md as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ArrayBuffer - JavaScript - MDN Web Docs
Chrome Edge ArrayBuffer Full support. Chrome7. Toggle history Full support. Edge12. Tog... @@species Full support. Chrome51. Toggle history Full support. Edge13. Tog... ArrayBuffer() constructor Full support....
Read more >
javascript ArrayBuffer, what's it for?
Basically ArrayBuffer is used to keep binary data. It can be the binary data of an image for example. In other languages buffers...
Read more >
ArrayBuffer, binary arrays
The basic binary object is ArrayBuffer – a reference to a fixed-length contiguous memory area. We create it like this: let buffer = ......
Read more >
JavaScript ArrayBuffer Object
The Javascript ArrayBuffer object is used to represent a generic, fixed-length raw binary data buffer. The contents of an ArrayBuffer cannot ...
Read more >
Shared Array Buffer | Can I use... Support tables for HTML5 ...
"Can I use" provides up-to-date browser support tables for support of front-end web technologies on desktop and mobile web browsers.
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