Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Offset is outside the bounds of the DataView #23

Open
ErikSom opened this issue Apr 26, 2023 · 2 comments
Open

RangeError: Offset is outside the bounds of the DataView #23

ErikSom opened this issue Apr 26, 2023 · 2 comments

Comments

@ErikSom
Copy link

ErikSom commented Apr 26, 2023

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
Copy link
Author

ErikSom commented Apr 26, 2023

First message:
image

Second message:
image

@jonas-db
Copy link

jonas-db commented May 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants