Not found

Exceptions 2

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.      */
  2.     public function render($requestThrowable $exception)
  3.     {
  4.         if ($exception instanceof NotFoundHttpException) {
  5.             if ( ! $exception->getMessage()) {
  6.                 $exception = new NotFoundHttpException(
  7.                     'Not found',
  8.                     $exception,
  9.                     (int) $exception->getCode(),
  10.                     $exception->getHeaders()
  11.                 );
  1.         $handler $this->container->make(ExceptionHandler::class);
  2.         $handler->report($e);
  3.         return $handler->render($passable$e);
  4.     }
  5. }
  1.     {
  2.         return function ($passable) use ($destination) {
  3.             try {
  4.                 return call_user_func($destination$passable);
  5.             } catch (Throwable $e) {
  6.                 return $this->handleException($passable$e);
  7.             }
  8.         };
  9.     }
  10.     /**
Pipeline->Laravel\Lumen\Routing\{closure}(object(Request)) in /var/www/app/app/Http/Middleware/GzipMiddleware.php (line 18)
  1.      * @param  \Closure $next
  2.      * @return mixed
  3.      */
  4.     public function handle($requestClosure $next)
  5.     {
  6.         $response $next($request);
  7.         if ( ! str_contains($request->header('Accept-Encoding'), 'gzip')) {
  8.             return $response;
  9.         }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return call_user_func($slice($stack$pipe), $passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
in /var/www/app/vendor/illuminate/pipeline/Pipeline.php -> Laravel\Lumen\Routing\{closure} (line 103)
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.     {
  2.         if (count($middleware) > && ! $this->shouldSkipMiddleware()) {
  3.             return (new Pipeline($this))
  4.                 ->send($this->make('request'))
  5.                 ->through($middleware)
  6.                 ->then($then);
  7.         }
  8.         return $then($this->make('request'));
  9.     }
  1.                 }
  2.                 return $this->handleDispatcherResponse(
  3.                     $this->createDispatcher()->dispatch($method$pathInfo)
  4.                 );
  5.             });
  6.         } catch (Throwable $e) {
  7.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  8.         }
  9.     }
  1.      * @param  SymfonyRequest|null  $request
  2.      * @return void
  3.      */
  4.     public function run($request null)
  5.     {
  6.         $response $this->dispatch($request);
  7.         if ($response instanceof SymfonyResponse) {
  8.             $response->send();
  9.         } else {
  10.             echo (string) $response;
Application->run() in /var/www/app/public/index.php (line 28)
  1. | the client's browser allowing them to enjoy the creative
  2. | and wonderful application we have prepared for them.
  3. |
  4. */
  5. $app->run();

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.      */
  2.     protected function handleDispatcherResponse($routeInfo)
  3.     {
  4.         switch ($routeInfo[0]) {
  5.             case Dispatcher::NOT_FOUND:
  6.                 throw new NotFoundHttpException;
  7.             case Dispatcher::METHOD_NOT_ALLOWED:
  8.                 throw new MethodNotAllowedHttpException($routeInfo[1]);
  9.             case Dispatcher::FOUND:
  10.                 return $this->handleFoundRoute($routeInfo);
  11.         }
  1.                 if (isset($this->router->getRoutes()[$method.$pathInfo])) {
  2.                     return $this->handleFoundRoute([true$this->router->getRoutes()[$method.$pathInfo]['action'], []]);
  3.                 }
  4.                 return $this->handleDispatcherResponse(
  5.                     $this->createDispatcher()->dispatch($method$pathInfo)
  6.                 );
  7.             });
  8.         } catch (Throwable $e) {
  9.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  10.         }
Application->Laravel\Lumen\Concerns\{closure}(object(Request))
  1.      */
  2.     protected function prepareDestination(BaseClosure $destination)
  3.     {
  4.         return function ($passable) use ($destination) {
  5.             try {
  6.                 return call_user_func($destination$passable);
  7.             } catch (Throwable $e) {
  8.                 return $this->handleException($passable$e);
  9.             }
  10.         };
  11.     }
Pipeline->Laravel\Lumen\Routing\{closure}(object(Request)) in /var/www/app/app/Http/Middleware/GzipMiddleware.php (line 18)
  1.      * @param  \Closure $next
  2.      * @return mixed
  3.      */
  4.     public function handle($requestClosure $next)
  5.     {
  6.         $response $next($request);
  7.         if ( ! str_contains($request->header('Accept-Encoding'), 'gzip')) {
  8.             return $response;
  9.         }
  1.                         // since the object we're given was already a fully instantiated object.
  2.                         $parameters = [$passable$stack];
  3.                     }
  4.                     $carry method_exists($pipe$this->method)
  5.                                     ? $pipe->{$this->method}(...$parameters)
  6.                                     : $pipe(...$parameters);
  7.                     return $this->handleCarry($carry);
  8.                 } catch (Throwable $e) {
  9.                     return $this->handleException($passable$e);
Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return call_user_func($slice($stack$pipe), $passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
in /var/www/app/vendor/illuminate/pipeline/Pipeline.php -> Laravel\Lumen\Routing\{closure} (line 103)
  1.     {
  2.         $pipeline array_reduce(
  3.             array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination)
  4.         );
  5.         return $pipeline($this->passable);
  6.     }
  7.     /**
  8.      * Run the pipeline and return the result.
  9.      *
  1.     {
  2.         if (count($middleware) > && ! $this->shouldSkipMiddleware()) {
  3.             return (new Pipeline($this))
  4.                 ->send($this->make('request'))
  5.                 ->through($middleware)
  6.                 ->then($then);
  7.         }
  8.         return $then($this->make('request'));
  9.     }
  1.                 }
  2.                 return $this->handleDispatcherResponse(
  3.                     $this->createDispatcher()->dispatch($method$pathInfo)
  4.                 );
  5.             });
  6.         } catch (Throwable $e) {
  7.             return $this->prepareResponse($this->sendExceptionToHandler($e));
  8.         }
  9.     }
  1.      * @param  SymfonyRequest|null  $request
  2.      * @return void
  3.      */
  4.     public function run($request null)
  5.     {
  6.         $response $this->dispatch($request);
  7.         if ($response instanceof SymfonyResponse) {
  8.             $response->send();
  9.         } else {
  10.             echo (string) $response;
Application->run() in /var/www/app/public/index.php (line 28)
  1. | the client's browser allowing them to enjoy the creative
  2. | and wonderful application we have prepared for them.
  3. |
  4. */
  5. $app->run();

Stack Traces 2

[2/2] NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
Not found

  at /var/www/app/app/Exceptions/Handler.php:64
  at App\Exceptions\Handler->render(object(Request), object(NotFoundHttpException))
     (/var/www/app/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:72)
  at Laravel\Lumen\Routing\Pipeline->handleException(object(Request), object(NotFoundHttpException))
     (/var/www/app/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:50)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
     (/var/www/app/app/Http/Middleware/GzipMiddleware.php:18)
  at App\Http\Middleware\GzipMiddleware->handle(object(Request), object(Closure))
     (/var/www/app/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request))
     (/var/www/app/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
     (/var/www/app/vendor/illuminate/pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:413)
  at Laravel\Lumen\Application->sendThroughPipeline(array('App\\Http\\Middleware\\GzipMiddleware'), object(Closure))
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:171)
  at Laravel\Lumen\Application->dispatch(null)
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:108)
  at Laravel\Lumen\Application->run()
     (/var/www/app/public/index.php:28)                

[1/2] NotFoundHttpException

Symfony\Component\HttpKernel\Exception\NotFoundHttpException:

  at /var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:229
  at Laravel\Lumen\Application->handleDispatcherResponse(array(0))
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:169)
  at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request))
     (/var/www/app/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
     (/var/www/app/app/Http/Middleware/GzipMiddleware.php:18)
  at App\Http\Middleware\GzipMiddleware->handle(object(Request), object(Closure))
     (/var/www/app/vendor/illuminate/pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
  at call_user_func(object(Closure), object(Request))
     (/var/www/app/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
     (/var/www/app/vendor/illuminate/pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:413)
  at Laravel\Lumen\Application->sendThroughPipeline(array('App\\Http\\Middleware\\GzipMiddleware'), object(Closure))
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:171)
  at Laravel\Lumen\Application->dispatch(null)
     (/var/www/app/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:108)
  at Laravel\Lumen\Application->run()
     (/var/www/app/public/index.php:28)