5

TypeError Is Not Run in Redis Message Event

 3 years ago
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

advertisements

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

I'm trying to learn how to test Rails controllers right now and I'm stuck. Whenever I try to test my test/controllers/articles_controller_test.rb file I get this error message. ArticlesControllerTest#test_should_update_article: TypeError: can't cast

Hadoop: NameNode, DataNode, and SecondaryNameNode are not running

I'm trying to install Hadoop 2.2.0 on a Single Node Cluster on my computer using this tutorial http://codesfusion.blogspot.gr/2013/10/setup-hadoop-2x-220-on-ubuntu.html?m=1 . I follow every instruction I see, step-by-step but I have the same problem

sidekiq - return to the standard synchronization ruby ​​code when the redis server is not running

I'm using sidekiq in a rails app to send some emails asynchronously. How can I ensure that the code (the job itself) is executed even when the Redis server is not running. CommentsWorker.perform_async(@user.id, @comment.id) In the comments worker, I'

How to not delete the MQ message by running Exception using Spring-JMS

I am using the spring-jms messageListenerContainer to listen to messages. When something wrong happens, I want to throw an exception and stop deleting the message from MQ. I want to use only AUTO_ACKNOWLEDGE Session for MQ. How can I achieve this? Wh

TypeError: $ is not a function when using the Firebug console directly

My page has jQuery referenced, as other code is already running correctly. But I need to add some new code, and decided to try testing the selector directly in Firebug before writing the code. So I go to the console and type in my selector: $("h3:con

angular2 TypeError: can not set the 'name' property of

I have an Angular2 project, created at Mac OS and it running. But when I git it at Windows, it can not run. In Chrome, i get this error: core.umd.js:3491 EXCEPTION: Uncaught (in promise): TypeError: Cannot set property 'name' of undefined TypeError:

The Powershell script does not run through scheduled tasks

I have a small script on my Domain Controller that is setup to email me via SMTP about the latest Security Event 4740. The script, when executed manually, will run as intended; however, when setup to run via Scheduled Tasks, and although it shows to

The Facebook.init method does not run

I'm a total noob using the Facebook Graph API for AS3. I have a Flash game and the idea is to upload it to Facebook, and everything seems to be ok (When entering the Facebook app, the swf shows perfectly and I'm able to post the facebook user id, the

A part of jQuery does not run

My issue is as follows: When I test this, the part marked as NOT BEING EXECUTED is not executed. The rest of the code prior to that point works fine, but after that line nothing happens. Am I missing something? I'm running Firefox with firebug and I

Can not run the Java applet in the web browser

I have added one class file and one zip file into html file and some html tags like bgcolor,title,center and so on my point is that the web browser runs html code only but unable to run applet without any error how can i do that very succesfully [Tra

Cordova GCM push notification does not work when the application is not running

The application is in PhoneGap. I am using push notification feature with https://github.com/marknutter/GCM-Cordova I implemented the whole feature and it worked fine until yesterday. When I checked the app last day, push notification is not working

Push notification for applications that are not running?

I'm studying GCM now and as far as I see it works for running apps, passing a payload to them and letting the app to deal with it by itself. However, I've seen apps that are received notifications (or maybe it was Android receiving and showing notifi

ASP.NET MVC5 / IIS Express Unable to Debug - Not Running Code

I start a VS2013 VB.Net MVC5 Web Application, set a breakpoint in HomeController About method and run "Start Debugging", navigate to About page and receive the message "Code not running - The current Thread is not currently running or the c

The Python daemon does not run in the background on Ubuntu

My Python daemon runs fine in the foreground of my Ubuntu system using this command in the terminal: python /opt/my-daemon.py foreground However when I try to call the daemon using the "start" command it fails, why? python /opt/my-daemon.py star

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK