After every execution, regardless of said execution - when using Chrome web browser the PHP local server throws this error:
Invalid request (Unexpecte
On Laravel, I realize this thread hasn't been active for a while now but I found a solution completely unrelated to what other people have been posting. So I realized that I was getting this very error because I didn't have an application key set for my application. You can find out more about application keys in this other Stack Overflow question. Before attempting to generate an application key, make sure you've run the following command in the root directory of your application.
composer install
From what I've read, when you create a new application via the
laravel new application
command, you should have a file called .env
by default. This was not my case, I had to rename the .env.example
file to .env
manually.
Once you have done the two above steps, run this command in the root directory of your app
php artisan key:generate
This solved the OP's error for me. Hope it can help someone in the future.
I confirmed that @user194714's suggestion is indeed a reason (maybe not the only one though). I'm using WordPress 4.7.1 and changing wp-admin/about.php @ line 55 resolved this issue. More importantly, the page loaded faster after this simple change. I will let WordPress maintainers know.
This is bug on PHP. It was fixed on PHP 7.2
I started to encounter this phenomenon just recently with both Firefox and Chrome. I can't confirm nor deny any problems with browser plugins. Since I hadn't change anything in my development environment I started to look for other possibilities. Turns out it was the real time scan engine of the new version of my antivirus program. Once I excluded my project build folders, the php installation folder and php.exe from the scanning the problems with sudden eof occurrences instantly vanished. Maybe this helps some of you.