question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Raw XREAD command fails with "Invalid argument type"

See original GitHub issue

(Assuming you have a working client and a stream named stream)

When trying to call client.XREAD('STREAMS', 'stream', '0')

the code throws a TypeError: Invalid argument type exception.

I think it’s a bug, equivalent redis command is XREAD STREAMS stream 0 and runs without issue through redis-cli.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
leibalecommented, Oct 29, 2022

https://redis.js.org/documentation/client/modules/lib_commands_XREAD.html BTW, the package has full TS support, so you should get autocomplete in your IDE

0reactions
almosnowcommented, Oct 29, 2022

It does work now, thanks!

I thought raw commands had a simple mapping to redis commands like literally [args, arg, arg, arg, …]

I see that’s not the case, is this documented anywhere (how to call each of the raw commands)?

Read more comments on GitHub >

github_iconTop Results From Across the Web

invalid argument type' error when using !! operator in R - Stack ...
I am trying to programmatically initialize some variables in R so that the variable name would be the evaluated content of the string....
Read more >
Error in !is.na : invalid argument type · Issue #185 - GitHub
I am having an issue with check_model(), in which some of the models I run elicit this error: Error in !is.na : invalid...
Read more >
Node Redis
To check if the the client is connected and ready to send commands, use client.isReady which returns a boolean. client.isOpen is also available....
Read more >
You're Probably Thinking About Redis Streams Wrong
Generally, sending raw Redis commands and decoding the results provides a little more control and isn't onerous. So, when sending commands to ...
Read more >
Mypy Documentation - Read the Docs
This command makes mypy type check your program.py file and print out any errors ... v3: Vec[int, int] = [] # Error: Invalid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found