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

Fix "Cannot read properties of null (reading 'callback')" error occured in Doc.prototype._handleSubscribe #613

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jiazheng
Copy link

@jiazheng jiazheng commented Jun 12, 2023

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 request would be null.
Add two checkings to fix it.

image

@alecgibson
Copy link
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
Copy link
Collaborator

Also see: #605

@alecgibson
Copy link
Collaborator

I don't think this is the right fix for this; we should never reach this state.

@jiazheng
Copy link
Author

Thanks for your response. I will check the code and find out why it happened.

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

Successfully merging this pull request may close these issues.

2 participants