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

Bug when calling server.tryShutdown #142

Closed
franciscocpg opened this issue Jan 5, 2018 · 3 comments
Closed

Bug when calling server.tryShutdown #142

franciscocpg opened this issue Jan 5, 2018 · 3 comments
Assignees

Comments

@franciscocpg
Copy link

OS Version
Linux 4.14.11-1-ARCH #1 SMP PREEMPT Wed Jan 3 07:02:42 UTC 2018 x86_64 GNU/Linux

Node
v9.3.0

grpc-node
1.8.0

When calling server.tryShutdown() without a callback I'm getting this error:

#
# Fatal error in ../deps/v8/src/objects.cc, line 3574
# Check failed: receiver->IsJSFunction().
#

Isn't this (no callback) supposed to be handled by the library?

@murgatroid99
Copy link
Member

The callback is not optional. But we should be checking and throwing a more helpful error instead of crashing.

@murgatroid99
Copy link
Member

In 1.8.4 this now throws an exception indicating that a callback argument is required.

@franciscocpg
Copy link
Author

👍

@lock lock bot locked as resolved and limited conversation to collaborators Sep 29, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants