Uh oh!
There was an error while loading. Please reload this page.
Fix "Cannot read properties of null (reading 'callback')" error occured in Doc.prototype._handleSubscribe - #613
Open
jiazheng wants to merge 1 commit into
Open
Fix "Cannot read properties of null (reading 'callback')" error occured in Doc.prototype._handleSubscribe#613jiazheng wants to merge 1 commit into
jiazheng wants to merge 1 commit into
Conversation
alecgibson
commented
Jun 12, 2023
Collaborator
Can you please identify the root cause of this? If you're on the latest version of ShareDB you might have these warnings in your logs: #607 |
alecgibson
commented
Jun 12, 2023
Collaborator
Also see: #605 |
alecgibson
commented
Jun 12, 2023
Collaborator
I don't think this is the right fix for this; we should never reach this state. |
jiazheng
commented
Jun 13, 2023
Author
Thanks for your response. I will check the code and find out why it happened. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
There is a "Cannot read properties of null (reading 'callback')" error in our logging system when using this library in our project. The error occured in method: Doc.prototype._handleSubscribe. When this method called variable
requestwould be null.Add two checkings to fix it.