horizon: Laravel Redis: Error while writing bytes to the server.
I am experiencing some errors while interacting with Redis in Laravel. Every time I call Redis functions (e.x. zrange), Laravel logs this error
[2018-04-07 20:02:46] local.ERROR: Error while writing bytes to the server. [tcp://127.0.0.1:6379] {"exception":"[object] (Predis\\Connection\\ConnectionException(code: 0): Error while writing bytes to the server. [tcp://127.0.0.1:6379] at /var/www/html/vendor/predis/predis/src/Connection/AbstractConnection.php:155)
I can’t fix this. Help me…
P.S. Everything is up-to-date(I mean laravel, horizon and redis).
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 15 (2 by maintainers)
I’m here using PHP 8.2 and Laravel 10 and this issue still persist 😦
@emielmolenaar even better, use
phpiredis(note thei) which is an extension that predis supports as a backend. Can be turned on by adding the following todatabase.phpconfig underredis