-
Notifications
You must be signed in to change notification settings - Fork 1.9k
if statement fix #1054
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
if statement fix #1054
Conversation
|
@gstringfellow There should always be a command_obj, otherwise there's a error somewhere else. Do you have a reproducible test case? Otherwise please also activate the debug_mode to make it easier to spot the error. |
|
This is a blocker for me to release v.2.6. Could you provide some more details for me? This would be very helpful! |
|
I am running windows 8 with redis 2.8.24 running on my local machine; connecting to an external redis instance (on aws) runs fine. I ran node_redis with debug_mode but the output did'nt reveal anything to me. The Throw happens during initialization of node_redis before I run any commands with it. What follows is the output and the stacktrace. `Stream connected 127.0.0.1:6379 id 0 Stream connected 127.0.0.1:6379 id 1 Stream connected 127.0.0.1:6379 id 2 Net read 127.0.0.1:6379 id 0 Net read 127.0.0.1:6379 id 2 TypeError: Cannot read property 'callback' of undefined |
|
The output looks like it has something to do with the monitor command. You open three clients and fire monitor with one of them. As soon as it's connected and the monitor command is called, it throws... Would you be so kind and show the code that reproduces the error? And are you able to trigger the error in a local test? |
|
The above is the offending set of lines. I added the statement and removed the null check,but no change it still threw. |
|
Would you be so kind and try to find a way to reduce your code to the absolute minimal to reproducible this as a standalone program? Or would there be any other way to have a closer look at what is happening? |
|
@gstringfellow would you be so kind and check if #1074 fixes your issue? |
Pull Request check-list
Please make sure to review and check all of these items:
npm testpass with this change (including linting)?NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Sometimes command_obj is null and causes node to spit-up an Error with 'TypeError: Cannot read property 'callback' of undefined'. This change fixes that. This problem might be windows specific.