Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

Show exception properties
Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#98
  -statusCode: 404
  -headers: []
}
  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.         }
  1.      */
  2.     protected function prepareDestination(BaseClosure $destination)
  3.     {
  4.         return function ($passable) use ($destination) {
  5.             try {
  6.                 return $destination($passable);
  7.             } catch (Throwable $e) {
  8.                 return $this->handleException($passable$e);
  9.             }
  10.         };
  11.     }
Pipeline->Laravel\Lumen\Routing\{closure}() in /data/webroot/xianrong/backend/app/Http/Middleware/TrimStrings.php (line 22)
  1.     {
  2.         $param $this->_transform($request->all(), $request);
  3.         foreach ($param as $key => $value){
  4.             $request->offsetSet($key$value);
  5.         }
  6.         return $next($request);
  7.     }
  8.     
  9.     /**
  10.      * 清楚空格
  11.      * @param array $pram
  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);
  1.         return function ($stack$pipe) {
  2.             return function ($passable) use ($stack$pipe) {
  3.                 try {
  4.                     $slice parent::carry();
  5.                     return ($slice($stack$pipe))($passable);
  6.                 } catch (Throwable $e) {
  7.                     return $this->handleException($passable$e);
  8.                 }
  9.             };
  10.         };
in /data/webroot/xianrong/backend/vendor/illuminate/pipeline/Pipeline.php -> Laravel\Lumen\Routing\{closure} (line 116)
  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  \Symfony\Component\HttpFoundation\Request|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;
  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 Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:

  at /data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:235
  at Laravel\Lumen\Application->handleDispatcherResponse()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:175)
  at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
     (/data/webroot/xianrong/backend/app/Http/Middleware/TrimStrings.php:22)
  at App\Http\Middleware\TrimStrings->handle()
     (/data/webroot/xianrong/backend/vendor/illuminate/pipeline/Pipeline.php:180)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
  at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}()
     (/data/webroot/xianrong/backend/vendor/illuminate/pipeline/Pipeline.php:116)
  at Illuminate\Pipeline\Pipeline->then()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:428)
  at Laravel\Lumen\Application->sendThroughPipeline()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:177)
  at Laravel\Lumen\Application->dispatch()
     (/data/webroot/xianrong/backend/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:112)
  at Laravel\Lumen\Application->run()
     (/data/webroot/xianrong/backend/public/index.php:31)