TypeError Is Not Run in Redis Message Event
source link: https://www.codesd.com/item/typeerror-is-not-run-in-redis-message-event.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
TypeError Is Not Run in Redis Message Event
I'm trying to implement event system.
Node subscribes to Redis channel, receives message and calls non-existent method in object.
Complete code is here. Simple. http://pastebin.com/8XnbaepE Why error is not thrown?
I don't understand this behaviour.
Another strange problem is that after first time publishing message to channel next times when different channel and payload passed, the function arguments are old one.
What am I missing?
If you don't get an exception, this means node-redis caught it, and did not re-throw. This is actually a good practice in async i/o code as this will prevent node from exiting and killing your server.
Most likely you'll see your error if you register a callback on error.
sub.on("error", function(err) {
// deal with error
// ...
}
Related Articles
TypeError: Can not Run ActionController :: Parameters to integer Error Code When Testing Controller in Rails 4.1.10
Hadoop: NameNode, DataNode, and SecondaryNameNode are not running
sidekiq - return to the standard synchronization ruby code when the redis server is not running
How to not delete the MQ message by running Exception using Spring-JMS
TypeError: $ is not a function when using the Firebug console directly
angular2 TypeError: can not set the 'name' property of
The Powershell script does not run through scheduled tasks
The Facebook.init method does not run
A part of jQuery does not run
Can not run the Java applet in the web browser
Cordova GCM push notification does not work when the application is not running
Push notification for applications that are not running?
ASP.NET MVC5 / IIS Express Unable to Debug - Not Running Code
The Python daemon does not run in the background on Ubuntu
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK