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

Both operations have to have the same base length #37

Open
LaKing opened this issue May 23, 2018 · 3 comments
Open

Both operations have to have the same base length #37

LaKing opened this issue May 23, 2018 · 3 comments

Comments

@LaKing
Copy link

LaKing commented May 23, 2018

Not sure if my code uses ot correctly, as I could not compare it with the documentation ... but it works .. until suddenly the text gets duplicated multiple times on one client.

Error: Both operations have to have the same base length
    at ot.TextOperation.TextOperation.transform (/srv/codepad-project/modules/ot/node_modules/ot/lib/text-operation.js:411:13)
    at ot.WrappedOperation.WrappedOperation.transform (/srv/codepad-project/modules/ot/node_modules/ot/lib/wrapped-operation.js:66:16)
    at EditorSocketIOServer.ot.Server.Server.receiveOperation (/srv/codepad-project/modules/ot/node_modules/ot/lib/server.js:27:19)
    at EditorSocketIOServer.onOperation (/srv/codepad-project/modules/ot/editor-socketio-server.js:91:37)
    at /srv/codepad-project/modules/ot/editor-socketio-server.js:53:26
    at EditorSocketIOServer.mayWrite (/srv/codepad-project/modules/ot/editor-socketio-server.js:23:13)
    at Socket.<anonymous> (/srv/codepad-project/modules/ot/editor-socketio-server.js:48:22)
    at emitThree (events.js:136:13)
    at Socket.emit (events.js:217:7)
    at /srv/codepad-project/boilerplate/modules/server/node_modules/socket.io/lib/socket.js:527:12

@LaKing
Copy link
Author

LaKing commented May 28, 2018

This seems to happen if two clients are connected, and then the connection drops ....

@aminbaig
Copy link

Any update on this...?
I have been having the same issue.

@LaKing
Copy link
Author

LaKing commented Dec 31, 2018

Not sure how I got it fixed, .. sorry I don't remember.

You get this error if you use ot somehow wrong, with wrong parameters or so ...

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