Thursday, April 13, 2017

Redis error Laravel session with many ajax call

Hello I have API in Laravel with many ajax call. My problem is that, I have setted redis as session driver, and sometimes it return this error SELECT failed: ERR operation not permitted [tcp://127.0.0.1:6379] but not always and not in same ajax call. I am in xampp, and I don't know what to do.

My file in config/database.php is

'redis' => [

    'cluster' => false,

    'default' => [
        'host'     => '127.0.0.1',
        'port'     => 6379,
        'database' => 0,
        'password'=>env("REDIS_PASSWORD",null)
    ],

],

Password in .env is setted and many call return ok, but sometimes return error.



via LorenzoBerti

Advertisement