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
Callback for xadd #1471
Comments
@mikeslim7 this exists. Can you please post real code (instead |
I have an error than call
|
@protectedvar You have a version of Redis that doesn't support streams (unrelated to this issue). |
@stockholmux Does v2.8.0 support xadd callback? |
@gcobcqwe Yes. |
I have the same problem with the latest version node_redis (2.8.0?). I also tried to directly use the master branch, with throws the same error. The following code does not run. const rdb = redis.createClient("redis://localhost:6379");
const send = promisify(rdb.sendCommand).bind(rdb);
const n = {forename: "foo", lastname: "bar"};
send(`XADD nameStream * ${JSON.stringify(n)}`).catch(e => console.error(e)); ReplyError: ERR unknown command |
Hey, @hbel. I think your format is incorrect. |
The error posted here indicates the error came directly from the Redis server, not from the client. Thus, I am closing this issue. |
For anyone who might be reading this and saying wtf... The first argument to the send command functions need to be the command by its self. In the case of @hbel the Redis server literally thought the command was |
Hello,
Is there a way to have a callback for xadd something like:
I tried and had errors.
Thanks!
Mike
The text was updated successfully, but these errors were encountered: