Skip to content

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

Open
@ErikSom

Description

@ErikSom

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions