-
Notifications
You must be signed in to change notification settings - Fork 678
fix: cannot send ping without ref #2518
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
Conversation
The logger statements rely on `this.channelzRef.id` which is possibly undefined depending on when execution occurs. In order to avoid possibly undefined `.id`, ensure you can only send ping if `channelzRef` exists
|
How did you get into a situation where this is an issue? The |
If you experienced an error please file an issue describing it. |
@murgatroid99 This commit led to failures in our application with the following error as one of our dependencies pulls in the latest for this package - Version: 1.8.19 Package dep graph Error log -
|
I see what the problem is. I'll get a patch out today to fix it. In the meantime, if you are setting the option |
@murgatroid99 Thanks a bunch for the quick response and suggested workaround! |
In fact, for anyone who had that option enabled, due to other improvements to keepalive behavior in grpc-js 1.8.19, you may no longer need it. I recommend re-evaluating whether the keepalive behavior meets your needs without that option set. |
@murgatroid99 I can't say for sure how exactly we encounter it, it's behind multiple libraries ( Thankfully it sounds like you have an idea, my theory was the ping behaviour was queued and executed before the If this work doesn't make sense, please feel free to hijack the PR in whatever way you like 😄 |
You are correct. The fix for that is to rearrange those actions in the constructor: #2519. |
Closing in favor of #2519 |
The fix for this is now out in version 1.8.20 |
The logger statements rely on
this.channelzRef.id
which is possibly undefined depending on when execution occurs.In order to avoid possibly undefined
.id
, ensure you can only send ping ifchannelzRef
existsHey all, encountered a problem like this in usage. Just a suggested change, I'm not planning on following-up on this I'm afraid. We're planning to downgrade dependencies locally.