You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Environment Information
Happens in Chrome and FF
yjs 13.5.45
y-webrtc 10.2.4
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: