You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The second one, that is $r->blpop('queue:query',0);, is correct, but 0 as a value for the timeout argument blocks indefinitely until a message is available in the queue. If you really want to wait forever for a message using BLPOP then you have to configure Redis to not close idle clients after 300 seconds (you can do this by editing your redis.conf and setting the timeout entry to 0) and add read_write_timeout => 0 to the server parameters array / string passed to the constructor of Predis\Client.
This is the common cause for such an error using BLPOP, but if it's something different than you should tell me:
I was pushing to a different database which is the default 0 . I used predis example which uses database 15. After I pushed data to 15. This error vanished Error while reading line from the server.
I do it like this:
But I get this error:
ERR wrong number of arguments for 'blpop' command
Whenever I do this
I get the error:
Error while reading line from the server
Doing it from redis-cli
The text was updated successfully, but these errors were encountered: