www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Uncaught exception while running redis-pubsub-example of vibe.d

reply "Elvis Zhou" <elvis.x.zhou gmail.com> writes:
Running ./redis-pubsub-example
Callback subscribe(["test1"])
Task terminated with uncaught exception: expected of $ or *


The error message gives no hint of where the exception is 
raised.How do you guys debug this type of error?
Apr 14 2014
parent reply "Rikki Cattermole" <alphaglosined gmail.com> writes:
On Monday, 14 April 2014 at 10:30:53 UTC, Elvis Zhou wrote:
 Running ./redis-pubsub-example
 Callback subscribe(["test1"])
 Task terminated with uncaught exception: expected of $ or *


 The error message gives no hint of where the exception is 
 raised.How do you guys debug this type of error?
Found it [0]. Just out of curiosity but do you have a redis server running at port 6379 on your machine? Because if not that might be why. https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/db/redis/redis.d#L520
Apr 15 2014
parent reply "Elvis Zhou" <elvis.x.zhou gmail.com> writes:
On Tuesday, 15 April 2014 at 10:53:42 UTC, Rikki Cattermole wrote:
 On Monday, 14 April 2014 at 10:30:53 UTC, Elvis Zhou wrote:
 Running ./redis-pubsub-example
 Callback subscribe(["test1"])
 Task terminated with uncaught exception: expected of $ or *


 The error message gives no hint of where the exception is 
 raised.How do you guys debug this type of error?
Found it [0]. Just out of curiosity but do you have a redis server running at port 6379 on your machine? Because if not that might be why. https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/db/redis/redis.d#L520
The redis server is running, and another redis client example but not this pubsub one works too.
Apr 15 2014
parent "Rikki Cattermole" <alphaglosined gmail.com> writes:
On Tuesday, 15 April 2014 at 14:53:55 UTC, Elvis Zhou wrote:
 The redis server is running, and another redis client example 
 but not this pubsub one works too.
Probably a bug then. Raise an issue on github please.
Apr 15 2014