Support the ongoing development of Laravel.io →
Configuration Requests

Im getting this error randomly,i search it and it seems that this happens if you havent set an app key,the problem is i had set it from the start.The problem usually happens when i make multiple cals.

error:

[2015-10-12 16:36:11] development.ERROR: exception 'RuntimeException' with message 'No supported encrypter found. The cipher and / or key length are invalid.' in C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Encryption\EncryptionServiceProvider.php:29 Stack trace: #0 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(733): Illuminate\Encryption\EncryptionServiceProvider->Illuminate\Encryption{closure}(Object(Illuminate\Foundation\Application), Array) #1 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(626): Illuminate\Container\Container->build(Object(Closure), Array) #2 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(674): Illuminate\Container\Container->make('encrypter', Array) #3 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(837): Illuminate\Foundation\Application->make('Illuminate\Cont...') #4 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(800): Illuminate\Container\Container->resolveClass(Object(ReflectionParameter)) #5 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(771): Illuminate\Container\Container->getDependencies(Array, Array) #6 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Container\Container.php(626): Illuminate\Container\Container->build('App\Http\Middle...', Array) #7 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Application.php(674): Illuminate\Container\Container->make('App\Http\Middle...', Array) #8 C:\xampp2\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php(142): Illuminate\Foundation\Application->make('App\Http\Middle...') #9 C:\xampp2\htdocs\public\index.php(58): Illuminate\Foundation\Http\Kernel->terminate(Object(Illuminate\Http\Request), Object(Illuminate\Http\Response)) #10 {main}

Last updated 3 years ago.
0

I'm not sure, but this approach worked for me:

run

php artisan key:generate

copy and pase string in brackets (without them) to /config/app.php and paste instead of SomeRandomString

'key' => env('APP_KEY', 'SomeRandomString'),
Last updated 9 years ago.
0

4unkur said:

I'm not sure, but this approach worked for me:

run

php artisan key:generate

copy and pase string in brackets (without them) to /config/app.php and paste instead of SomeRandomString

'key' => env('APP_KEY', 'SomeRandomString'),

look my problem doesnt always happen it happens only when i make multiple $http calls to test it i created a function with a for and made 50 calls before i do what you said i had like 22 errors 500 and in the log was the message i wrote above.After i did what you i said only 2-3 calls failed and i get 404 error not found and in the log nothing.

Last updated 9 years ago.
0
Solution

Ok i solved the problem.My computer resources was not enough to make multiple calls,after i upload to server everything works fine.

0

LOL :)

0

The same error on Windows & Apache & PHP 5.5 All on SSD

0

Sign in to participate in this thread!

Eventy

Your banner here too?

noxtri noxtri Joined 8 Sep 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.