Symfony Exception

NotFoundHttpException

HTTP 404 Not Found

Exception

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.         if (count($others) > 0) {
  2.             return $this->getRouteForMethods($request$others);
  3.         }
  4.         throw new NotFoundHttpException;
  5.     }
  6.     /**
  7.      * Determine if any routes match on another HTTP verb.
  8.      *
  1.         // First, we will see if we can find a matching route for this current request
  2.         // method. If we can, great, we can just return it so that it can be called
  3.         // by the consumer. Otherwise we will check for routes with another verb.
  4.         $route $this->matchAgainstRoutes($routes$request);
  5.         return $this->handleMatchedRoute($request$route);
  6.     }
  7.     /**
  8.      * Get routes from the collection by method.
  9.      *
  1.      * @param  \Illuminate\Http\Request  $request
  2.      * @return \Illuminate\Routing\Route
  3.      */
  4.     protected function findRoute($request)
  5.     {
  6.         $this->current $route $this->routes->match($request);
  7.         $route->setContainer($this->container);
  8.         $this->container->instance(Route::class, $route);
  1.      * @param  \Illuminate\Http\Request  $request
  2.      * @return \Symfony\Component\HttpFoundation\Response
  3.      */
  4.     public function dispatchToRoute(Request $request)
  5.     {
  6.         return $this->runRoute($request$this->findRoute($request));
  7.     }
  8.     /**
  9.      * Find the route matching a given request.
  10.      *
  1.      */
  2.     public function dispatch(Request $request)
  3.     {
  4.         $this->currentRequest $request;
  5.         return $this->dispatchToRoute($request);
  6.     }
  7.     /**
  8.      * Dispatch the request to a route and return the response.
  9.      *
  1.     protected function dispatchToRouter()
  2.     {
  3.         return function ($request) {
  4.             $this->app->instance('request'$request);
  5.             return $this->router->dispatch($request);
  6.         };
  7.     }
  8.     /**
  9.      * Call the terminate method on any terminable middleware.
  1.      */
  2.     protected function prepareDestination(Closure $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.     }
  1.      */
  2.     public function handle(Request $requestClosure $next)
  3.     {
  4.         $check auth()->check();
  5.         $response $next($request);
  6.         if (method_exists($response'withCookie')) {
  7.             return $response->withCookie(
  8.                 cookie('session_proxy'$check$check config('session.lifetime'120) : -1nullnull$request->isSecure())
  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);
  1.      * @param  \Closure  $next
  2.      * @return mixed
  3.      */
  4.     public function handle($requestClosure $next)
  5.     {
  6.         $response $next($request);
  7.         foreach ($this->cookies->getQueuedCookies() as $cookie) {
  8.             $response->headers->setCookie($cookie);
  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);
  1.      * @param  \Closure  $next
  2.      * @return \Symfony\Component\HttpFoundation\Response
  3.      */
  4.     public function handle($requestClosure $next)
  5.     {
  6.         return $this->encrypt($next($this->decrypt($request)));
  7.     }
  8.     /**
  9.      * Decrypt the cookies on the request.
  10.      *
  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.         // Putting the errors in the view for every view allows the developer to just
  2.         // assume that some errors are always available, which is convenient since
  3.         // they don't have to continually run checks for the presence of errors.
  4.         return $next($request);
  5.     }
  6. }
  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.             $this->startSession($request$session)
  2.         );
  3.         $this->collectGarbage($session);
  4.         $response $next($request);
  5.         $this->storeCurrentUrl($request$session);
  6.         $this->addCookieToResponse($response$session);
  1.         if ($this->manager->shouldBlock() ||
  2.             ($request->route() instanceof Route && $request->route()->locksFor())) {
  3.             return $this->handleRequestWhileBlocking($request$session$next);
  4.         }
  5.         return $this->handleStatefulRequest($request$session$next);
  6.     }
  7.     /**
  8.      * Handle the given request within session state.
  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);
  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.         $this->bootstrap();
  2.         return (new Pipeline($this->app))
  3.                     ->send($request)
  4.                     ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
  5.                     ->then($this->dispatchToRouter());
  6.     }
  7.     /**
  8.      * Bootstrap the application for HTTP requests.
  9.      *
  1.         $this->bootstrap();
  2.         $this->routeAutomatically($request);
  3.         return parent::sendRequestThroughRouter($request);
  4.     }
  5.     /**
  6.      * Attempt to route the request automatically.
  7.      *
  1.     public function handle($request)
  2.     {
  3.         try {
  4.             $request->enableHttpMethodParameterOverride();
  5.             $response $this->sendRequestThroughRouter($request);
  6.         } catch (Throwable $e) {
  7.             $this->reportException($e);
  8.             $response $this->renderException($request$e);
  9.         }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function handle(Request $request$type self::MASTER_REQUEST$catch true)
  5.     {
  6.         return $this->kernel->handle($request);
  7.     }
  8.     /**
  9.      * Wrap a Laravel Kernel in a Symfony HttpKernel
  10.      *
  1.         if (!IpUtils::checkIp('127.0.0.1'$trustedProxies)) {
  2.             Request::setTrustedProxies(array_merge($trustedProxies, ['127.0.0.1']), Request::getTrustedHeaderSet());
  3.         }
  4.         try {
  5.             return $kernel->handle($request$type$catch);
  6.         } finally {
  7.             // restore global state
  8.             Request::setTrustedProxies($trustedProxies$trustedHeaderSet);
  9.         }
  10.     }
  1.         if ($this->surrogate) {
  2.             $this->surrogate->addSurrogateCapability($request);
  3.         }
  4.         // always a "master" request (as the real master request can be in cache)
  5.         $response SubRequestHandler::handle($this->kernel$requestHttpKernelInterface::MAIN_REQUEST$catch);
  6.         /*
  7.          * Support stale-if-error given on Responses or as a config option.
  8.          * RFC 7234 summarizes in Section 4.2.4 (but also mentions with the individual
  9.          * Cache-Control directives) that
  1.         // avoid that the backend sends no content
  2.         $subRequest->headers->remove('if_modified_since');
  3.         $subRequest->headers->remove('if_none_match');
  4.         $response $this->forward($subRequest$catch);
  5.         if ($response->isCacheable()) {
  6.             $this->store($request$response);
  7.         }
  1.         }
  2.         if (null === $entry) {
  3.             $this->record($request'miss');
  4.             return $this->fetch($request$catch);
  5.         }
  6.         if (!$this->isFreshEnough($request$entry)) {
  7.             $this->record($request'stale');
  1.                 reload the cache by fetching a fresh response and caching it (if possible).
  2.             */
  3.             $this->record($request'reload');
  4.             $response $this->fetch($request$catch);
  5.         } else {
  6.             $response $this->lookup($request$catch);
  7.         }
  8.         $this->restoreResponseBody($request$response);
  9.         if (HttpKernelInterface::MAIN_REQUEST === $type) {
HttpCache->handle(object(Request)) in /srv/users/dhpdc/apps/dhpdc/releases/20240327213534/public/index.php (line 63)
  1. $kernel $app->make(Illuminate\Contracts\Http\Kernel::class);
  2. $kernel = \Anomaly\Streams\Platform\Http\CacheKernel::wrap($kernel);
  3. $response $kernel->handle(
  4.     $request Illuminate\Http\Request::capture()
  5. );
  6. $response->send();
  7. /**

Stack Trace

NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:

  at /srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:43
  at Illuminate\Routing\AbstractRouteCollection->handleMatchedRoute(object(Request), null)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Routing/RouteCollection.php:162)
  at Illuminate\Routing\RouteCollection->match(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Routing/Router.php:647)
  at Illuminate\Routing\Router->findRoute(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Routing/Router.php:636)
  at Illuminate\Routing\Router->dispatchToRoute(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625)
  at Illuminate\Routing\Router->dispatch(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:166)
  at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/anomaly/streams-platform/src/Http/Middleware/ProxySession.php:32)
  at Anomaly\Streams\Platform\Http\Middleware\ProxySession->handle(object(Request), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37)
  at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67)
  at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49)
  at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:121)
  at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:64)
  at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167)
  at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103)
  at Illuminate\Pipeline\Pipeline->then(object(Closure))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:141)
  at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/anomaly/streams-platform/src/Http/Kernel.php:132)
  at Anomaly\Streams\Platform\Http\Kernel->sendRequestThroughRouter(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110)
  at Illuminate\Foundation\Http\Kernel->handle(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/barryvdh/laravel-httpcache/src/CacheKernel.php:27)
  at Barryvdh\HttpCache\CacheKernel->handle(object(Request), 1, true)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:85)
  at Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(object(CacheKernel), object(Request), 1, true)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/symfony/http-kernel/HttpCache/HttpCache.php:477)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(object(Request), true)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/symfony/http-kernel/HttpCache/HttpCache.php:450)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(object(Request), true)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/symfony/http-kernel/HttpCache/HttpCache.php:344)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(object(Request), true)
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/vendor/symfony/http-kernel/HttpCache/HttpCache.php:222)
  at Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(object(Request))
     (/srv/users/dhpdc/apps/dhpdc/releases/20240327213534/public/index.php:63)