typed-array-buffer-schema icon indicating copy to clipboard operation
typed-array-buffer-schema copied to clipboard

RangeError: Offset is outside the bounds of the DataView

Open ErikSom opened this issue 2 years ago • 2 comments

I have a simple chatMessage model for my app:

const chatMessage = BufferSchema.schema('chatMessage', {
	message: {type: string16, length: 200},
});

export const chatMessageModel = new Model(chatMessage);

The first time serialising and deserialising local goes fine. However doing it a second time for some reason caps the DataView at a length of 29 and I get a out of bounds error. This was never there before and I did not change anything to my app. It seems a browser update has broken this somehow but I can't figure it out.

ErikSom avatar Apr 26 '23 10:04 ErikSom

First message: image

Second message: image

ErikSom avatar Apr 26 '23 10:04 ErikSom

I actually am experiencing a similar problem since few days where simple chat messages are broken. Client to server works, and then when i send the exact same message from server to client, I get offset error

jonas-db avatar May 02 '23 16:05 jonas-db