Did you cache the config? If not, that could be a reason since multiple concurrent requests can't read the same .env file.
Mar 25, 2016
8
Level 1
No supported encrypter found
[2016-03-25 04:04:59] production.ERROR: RuntimeException: No supported encrypter found. The cipher and / or key length are invalid. in C:\xampp\htdocs\site\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:31
This thing happen once every ~2 minutes on random requests, I tried key:generate multiple times and cipher in config file is default AES-256-CBC any ideas how to fix this thing?
Im using laravel 5.2.24
Level 13
I reported the same issue a while ago here on this thread . The way i solved this is by adding a fallback on the key property in app.php like this
'key' => env('APP_KEY', 'S043rl4v4ABM4FtGhylMejtskvRipr2d'),
'cipher' => 'AES-256-CBC',
Then i never saw this error again. I believe at some point the env() fails
1 like
Please or to participate in this conversation.