Skip to content
Advertisement

Tag: exception

“start_batch was called incorrectly” on gRPC unary call

I make an unary call from PHP code like that: Sometimes I get the LogicException with message “start_batch was called incorrectly”. Any thoughts how to deal with that exception and what is the root cause? Answer After some investigation I found out that the problem occurs because of reusing the instance of GrpcUnaryCall in retries. You must not do that

Class AppHttpControllersWelcomeController does not exist

I’m new in Laravel and I can’t understand why the controller doesn’t work. Can you help me? Thanks. This is the routes.php file: routes.php This is the WelcomeController controller: WelcomeController.php and this is the exception trowed: ReflectionException in Container.php line 737: Class AppHttpControllersWelcomeController does not exist Answer You need a WelcomeController.php file in directory Controllers, and you have it in

PHP “Exception not found”

I have a somehow funny issue. While trying to understand why a certain website returns http code 500 to browser, I found the message PHP Fatal error: Class ‘MZ\MailChimpBundle\Services\Exception’ …

Advertisement