I’m getting this error when trying to send a Blob chunk to my motoko backend canister. Below, I’ve attached a screenshot of the console error that I’m getting. below that, is a screenshot of the cause of the error that I’m getting. the
cbor.bytes() function takes in an arrayBuffer and returns the
byteLength. but in this case, the
value variable is the buffer. so taking
value.buffer results in
undefined being passed into the
cbor.bytes() function. I suspect that the problem with the
cbor.bytes() function could possibly be a bug? I’m thinking maybe there should be a check on the
value argument to see if it is an object that has an
arrayBuffer as a property vs. if it is an arrayBuffer itself. I can’t say for sure because I don’t have access to
serializer.js file to investigate further. would someone at dfinity be able to look into this? @Gabriel, @peterparker, @kpeacock.
console error that I’m getting:
cause of the error(I think):
my handleSubmit() function
I’ve tried putting an
await on line 37. no luck.