[X] Are you reporting a bug? Use github issues for bug reports and feature requests. For general questions, please use https://discuss.yjs.dev/
[X] Try to report your issue in the correct repository. Yjs consists of many modules. When in doubt, report it to https://github.com/yjs/yjs/issues/
Describe the bug
I'm adding a long string (~300K characters) to a Y.Text type, which causes webrtc errors to show (ERR_SET_REMOTE_DESCRIPTION) on the other clients. The text is never synced. Interestingly, it's possible to add an even longer string by adding it in smaller increments.
I'm not sure if there is an inherent limit to updates when using y-webrtc, I couldn't find anything documented, so I'm filing this as a bug.
Bonus question: is there some way to catch these types of errors so I can display an error message? This is a contrived example but I'm actually running into a variation of this error in the application I'm building.
Open the sandbox again on another machine or another browser
In first window, Click on "Add long string"
Open console of the other window
See error, and observe that the string is not synced.
As mentioned, it's easily possible to sync a string that is longer than 500k chars by repeatedly using the "Add short string" button, but adding the long string at once seems to cause problems.
Expected behavior
The string should be synced and no error thrown.
Checklist
Describe the bug I'm adding a long string (~300K characters) to a Y.Text type, which causes webrtc errors to show (
ERR_SET_REMOTE_DESCRIPTION
) on the other clients. The text is never synced. Interestingly, it's possible to add an even longer string by adding it in smaller increments.I'm not sure if there is an inherent limit to updates when using y-webrtc, I couldn't find anything documented, so I'm filing this as a bug.
Bonus question: is there some way to catch these types of errors so I can display an error message? This is a contrived example but I'm actually running into a variation of this error in the application I'm building.
To Reproduce Steps to reproduce the behavior:
As mentioned, it's easily possible to sync a string that is longer than 500k chars by repeatedly using the "Add short string" button, but adding the long string at once seems to cause problems.
Expected behavior The string should be synced and no error thrown.
Environment Information Happens in Chrome and FF