Hi guys,
I'm using Beanstalkd/Queues and looking at the logs, I see some failed queues with the below response in my logs. How do I narrow down what line in my code is causing this or what this error means exactly? It sounds like it's trying to find a file but it doesn't exist? Is there anything I can put in my code to help it return what line this occurs at?
local.ERROR: exception 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException' in /var/www/newproject/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:148 Stack trace: #0 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1049): Illuminate\Routing\RouteCollection->match(Object(Illuminate\Http\Request)) #1 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(1017): Illuminate\Routing\Router->findRoute(Object(Illuminate\Http\Request)) #2 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Routing/Router.php(996): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #3 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(775): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #4 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(745): Illuminate\Foundation\Application->dispatch(Object(Illuminate\Http\Request)) #5 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Session/Middleware.php(72): Illuminate\Foundation\Application->handle(Object(Illuminate\Http\Request), 1, true) #6 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Cookie/Queue.php(47): Illuminate\Session\Middleware->handle(Object(Illuminate\Http\Request), 1, true) #7 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Cookie/Guard.php(51): Illuminate\Cookie\Queue->handle(Object(Illuminate\Http\Request), 1, true) #8 /var/www/newproject/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Illuminate\Cookie\Guard->handle(Object(Illuminate\Http\Request), 1, true) #9 /var/www/newproject/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(641): Stack\StackedHttpKernel->handle(Object(Illuminate\Http\Request)) #10 /var/www/newproject/public/index.php(49): Illuminate\Foundation\Application->run() #11 {main} [] []
Ok, after searching I found out this was due to a URL not found so I just added the following code to my /app/start/global.php which then told me what URL it had trouble finding.
App::missing(function($e) { $url = Request::fullUrl(); Log::warning("404 for URL: $url"); return Response::make('404 not found', 404); });
Looks like it has nothing to do with my queues and the IP I received from my host was still getting pinged/visited that wanted to check out the previous owner.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community