Symfony\Component\HttpKernel\Exception\NotFoundHttpException {#202 -statusCode: 404 -headers: [] }
*/ protected function handleDispatcherResponse($routeInfo) { switch ($routeInfo[0]) { case Dispatcher::NOT_FOUND: throw new NotFoundHttpException; case Dispatcher::METHOD_NOT_ALLOWED: throw new MethodNotAllowedHttpException($routeInfo[1]); case Dispatcher::FOUND: return $this->handleFoundRoute($routeInfo); } if (isset($this->router->getRoutes()[$method.$pathInfo])) { return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]); } return $this->handleDispatcherResponse( $this->createDispatcher()->dispatch($method, $pathInfo) ); }); } catch (Throwable $e) { return $this->prepareResponse($this->sendExceptionToHandler($e)); */ protected function prepareDestination(BaseClosure $destination) { return function ($passable) use ($destination) { try { return $destination($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; } // return response()->json([ // "error" => "Forbidden: IP address rejected." // ],403); // } return $next($request); }} // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { try { $slice = parent::carry(); return ($slice($stack, $pipe))($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; return $response; } // Handle the request $response = $next($request); if ($request->getMethod() === 'OPTIONS') { $this->cors->varyHeader($response, 'Access-Control-Request-Method'); } // since the object we're given was already a fully instantiated object. $parameters = [$passable, $stack]; } $carry = method_exists($pipe, $this->method) ? $pipe->{$this->method}(...$parameters) : $pipe(...$parameters); return $this->handleCarry($carry); } catch (Throwable $e) { return $this->handleException($passable, $e); return function ($stack, $pipe) { return function ($passable) use ($stack, $pipe) { try { $slice = parent::carry(); return ($slice($stack, $pipe))($passable); } catch (Throwable $e) { return $this->handleException($passable, $e); } }; }; { $pipeline = array_reduce( array_reverse($this->pipes()), $this->carry(), $this->prepareDestination($destination) ); return $pipeline($this->passable); } /** * Run the pipeline and return the result. * { if (count($middleware) > 0 && ! $this->shouldSkipMiddleware()) { return (new Pipeline($this)) ->send($this->make('request')) ->through($middleware) ->then($then); } return $then($this->make('request')); } [$method, $pathInfo] = $this->parseIncomingRequest($request); try { $this->boot(); return $this->sendThroughPipeline($this->middleware, function ($request) use ($method, $pathInfo) { $this->instance(Request::class, $request); if (isset($this->router->getRoutes()[$method.$pathInfo])) { return $this->handleFoundRoute([true, $this->router->getRoutes()[$method.$pathInfo]['action'], []]); } * @param \Symfony\Component\HttpFoundation\Request|null $request * @return void */ public function run($request = null) { $response = $this->dispatch($request); if ($response instanceof SymfonyResponse) { $response->send(); } else { echo (string) $response;| the client's browser allowing them to enjoy the creative| and wonderful application we have prepared for them.|*/$app->run();|
NotFoundHttpException
|
|---|
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
at /home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:235
at Laravel\Lumen\Application->handleDispatcherResponse(array(0))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:174)
at Laravel\Lumen\Application->Laravel\Lumen\Concerns\{closure}(object(Request))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:48)
at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
(/home/magellan/public_html/central_api/app/Http/Middleware/WhiteListIpAddressess.php:51)
at App\Http\Middleware\WhiteListIpAddressess->handle(object(Request), object(Closure))
(/home/magellan/public_html/central_api/vendor/illuminate/pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
(/home/magellan/public_html/central_api/vendor/fruitcake/laravel-cors/src/HandleCors.php:52)
at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure))
(/home/magellan/public_html/central_api/vendor/illuminate/pipeline/Pipeline.php:180)
at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Routing/Pipeline.php:30)
at Laravel\Lumen\Routing\Pipeline->Laravel\Lumen\Routing\{closure}(object(Request))
(/home/magellan/public_html/central_api/vendor/illuminate/pipeline/Pipeline.php:116)
at Illuminate\Pipeline\Pipeline->then(object(Closure))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:428)
at Laravel\Lumen\Application->sendThroughPipeline(array('Fruitcake\\Cors\\HandleCors', 'App\\Http\\Middleware\\WhiteListIpAddressess'), object(Closure))
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:167)
at Laravel\Lumen\Application->dispatch(null)
(/home/magellan/public_html/central_api/vendor/laravel/lumen-framework/src/Concerns/RoutesRequests.php:112)
at Laravel\Lumen\Application->run()
(/home/magellan/public_html/central_api/public/index.php:28)
|