Symfony Exception

No route found for "GET https://www.coffeeb.com.staging.neta.sh/shop/coffee-ball"

Exceptions 2

Symfony\Component\HttpKernel\Exception\ NotFoundHttpException

  1.             if ($referer $request->headers->get('referer')) {
  2.                 $message .= sprintf(' (from "%s")'$referer);
  3.             }
  4.             throw new NotFoundHttpException($message$e);
  5.         } catch (MethodNotAllowedException $e) {
  6.             $message sprintf('No route found for "%s %s": Method Not Allowed (Allow: %s)'$request->getMethod(), $request->getUriForPath($request->getPathInfo()), implode(', '$e->getAllowedMethods()));
  7.             throw new MethodNotAllowedHttpException($e->getAllowedMethods(), $message$e);
  8.         }
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
HttpKernel->handle() in public/index.php (line 50)
  1. }
  2. $request Request::createFromGlobals();
  3. $kernel = new HttpKernel($appEnv$debug$classLoader);
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

Symfony\Component\Routing\Exception\ ResourceNotFoundException

No routes found for "/shop/coffee-ball/".

  1.             if ($allowSchemes) {
  2.                 goto redirect_scheme;
  3.             }
  4.         }
  5.         throw new ResourceNotFoundException(sprintf('No routes found for "%s".'$pathinfo));
  6.     }
  7.     private function doMatch(string $pathinfo, array &$allow = [], array &$allowSchemes = []): array
  8.     {
  9.         $allow $allowSchemes = [];
  1.      */
  2.     public function matchRequest(Request $request)
  3.     {
  4.         $this->request $request;
  5.         $ret $this->match($request->getPathInfo());
  6.         $this->request null;
  7.         return $ret;
  8.     }
in vendor/symfony/routing/Router.php -> matchRequest (line 257)
  1.         if (!$matcher instanceof RequestMatcherInterface) {
  2.             // fallback to the default UrlMatcherInterface
  3.             return $matcher->match($request->getPathInfo());
  4.         }
  5.         return $matcher->matchRequest($request);
  6.     }
  7.     /**
  8.      * Gets the UrlMatcher or RequestMatcher instance associated with this Router.
  9.      *
  1.             ['REQUEST_URI' => $request->attributes->get(RequestTransformer::SALES_CHANNEL_RESOLVED_URI)]
  2.         );
  3.         $localClone $request->duplicate(nullnullnullnullnull$server);
  4.         return $this->decorated->matchRequest($localClone);
  5.     }
  6.     public function setContext(RequestContext $context)
  7.     {
  8.         return $this->decorated->setContext($context);
  1.         // add attributes based on the request (routing)
  2.         try {
  3.             // matching a request is more powerful than matching a URL path + context, so try that first
  4.             if ($this->matcher instanceof RequestMatcherInterface) {
  5.                 $parameters $this->matcher->matchRequest($request);
  6.             } else {
  7.                 $parameters $this->matcher->match($request->getPathInfo());
  8.             }
  9.             if (null !== $this->logger) {
  1.         $this->priority $dispatcher->getListenerPriority($eventName$this->listener);
  2.         $e $this->stopwatch->start($this->name'event_listener');
  3.         try {
  4.             ($this->optimizedListener ?? $this->listener)($event$eventName$dispatcher);
  5.         } finally {
  6.             if ($e->isStarted()) {
  7.                 $e->stop();
  8.             }
  9.         }
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (!$event instanceof FlowEventAware) {
  8.             return $event;
  9.         }
  1.      *
  2.      * @return TEvent
  3.      */
  4.     public function dispatch($event, ?string $eventName null): object
  5.     {
  6.         $event $this->dispatcher->dispatch($event$eventName);
  7.         if (EnvironmentHelper::getVariable('DISABLE_EXTENSIONS'false)) {
  8.             return $event;
  9.         }
  1.         $this->definitionRegistry $definitionRegistry;
  2.     }
  3.     public function dispatch($event, ?string $eventName null): object
  4.     {
  5.         $event $this->dispatcher->dispatch($event$eventName);
  6.         if (Feature::isActive('FEATURE_NEXT_17858')) {
  7.             return $event;
  8.         }
  1.                 }
  2.                 $this->dispatch($nested$name);
  3.             }
  4.         }
  5.         return $this->dispatcher->dispatch($event$eventName);
  6.     }
  7.     /**
  8.      * @param callable $listener can not use native type declaration @see https://github.com/symfony/symfony/issues/42283
  9.      */
  1.         try {
  2.             $this->beforeDispatch($eventName$event);
  3.             try {
  4.                 $e $this->stopwatch->start($eventName'section');
  5.                 try {
  6.                     $this->dispatcher->dispatch($event$eventName);
  7.                 } finally {
  8.                     if ($e->isStarted()) {
  9.                         $e->stop();
  10.                     }
  11.                 }
  1.      */
  2.     private function handleRaw(Request $requestint $type self::MAIN_REQUEST): Response
  3.     {
  4.         // request
  5.         $event = new RequestEvent($this$request$type);
  6.         $this->dispatcher->dispatch($eventKernelEvents::REQUEST);
  7.         if ($event->hasResponse()) {
  8.             return $this->filterResponse($event->getResponse(), $request$type);
  9.         }
  1.     {
  2.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  3.         $this->requestStack->push($request);
  4.         try {
  5.             return $this->handleRaw($request$type);
  6.         } catch (\Exception $e) {
  7.             if ($e instanceof RequestExceptionInterface) {
  8.                 $e = new BadRequestHttpException($e->getMessage(), $e);
  9.             }
  10.             if (false === $catch) {
  1.         $this->boot();
  2.         ++$this->requestStackSize;
  3.         $this->resetServices true;
  4.         try {
  5.             return $this->getHttpKernel()->handle($request$type$catch);
  6.         } finally {
  7.             --$this->requestStackSize;
  8.         }
  9.     }
  1.             && $container->getParameter('shopware.http.cache.enabled');
  2.         if ($enabled && $container->has(CacheStore::class)) {
  3.             $kernel = new static::$httpCacheClass($kernel$container->get(CacheStore::class), null, ['debug' => $this->debug]);
  4.         }
  5.         $response $kernel->handle($transformed$type$catch);
  6.         // fire event to trigger runtime events like seo url headers
  7.         $event = new BeforeSendResponseEvent($transformed$response);
  8.         $container->get('event_dispatcher')->dispatch($event);
  1.         if (!\is_bool($catch)) {
  2.             Feature::triggerDeprecationOrThrow('v6.5.0.0''The third parameter `$catch` of `HttpKernel->handle()` will be typed to `bool`');
  3.         }
  4.         try {
  5.             return $this->doHandle($request, (int) $type, (bool) $catch);
  6.         } catch (Exception $e) {
  7.             /** @var Params|array{url?: string} $connectionParams */
  8.             $connectionParams self::getConnection()->getParams();
  9.             $message str_replace([$connectionParams['url'] ?? null$connectionParams['password'] ?? null$connectionParams['user'] ?? null], '******'$e->getMessage());
HttpKernel->handle() in public/index.php (line 50)
  1. }
  2. $request Request::createFromGlobals();
  3. $kernel = new HttpKernel($appEnv$debug$classLoader);
  4. $result $kernel->handle($request);
  5. $result->getResponse()->send();
  6. $kernel->terminate($result->getRequest(), $result->getResponse());

Logs

No log messages

Stack Traces 2

[2/2] NotFoundHttpException
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
No route found for "GET https://www.coffeeb.com.staging.neta.sh/shop/coffee-ball"

  at vendor/symfony/http-kernel/EventListener/RouterListener.php:135
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:50)                
[1/2] ResourceNotFoundException
Symfony\Component\Routing\Exception\ResourceNotFoundException:
No routes found for "/shop/coffee-ball/".

  at vendor/symfony/routing/Matcher/Dumper/CompiledUrlMatcherTrait.php:74
  at Symfony\Component\Routing\Matcher\CompiledUrlMatcher->match()
     (vendor/symfony/routing/Matcher/UrlMatcher.php:106)
  at Symfony\Component\Routing\Matcher\UrlMatcher->matchRequest()
     (vendor/symfony/routing/Router.php:257)
  at Symfony\Component\Routing\Router->matchRequest()
     (vendor/shopware/platform/src/Storefront/Framework/Routing/Router.php:76)
  at Shopware\Storefront\Framework\Routing\Router->matchRequest()
     (vendor/symfony/http-kernel/EventListener/RouterListener.php:111)
  at Symfony\Component\HttpKernel\EventListener\RouterListener->onKernelRequest()
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:118)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Content/Flow/Dispatching/FlowDispatcher.php:56)
  at Shopware\Core\Content\Flow\Dispatching\FlowDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Webhook/WebhookDispatcher.php:98)
  at Shopware\Core\Framework\Webhook\WebhookDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Event/BusinessEventDispatcher.php:55)
  at Shopware\Core\Framework\Event\BusinessEventDispatcher->dispatch()
     (vendor/shopware/platform/src/Core/Framework/Event/NestedEventDispatcher.php:37)
  at Shopware\Core\Framework\Event\NestedEventDispatcher->dispatch()
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:154)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch()
     (vendor/symfony/http-kernel/HttpKernel.php:139)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:75)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:202)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:156)
  at Shopware\Core\HttpKernel->doHandle()
     (vendor/shopware/platform/src/Core/HttpKernel.php:81)
  at Shopware\Core\HttpKernel->handle()
     (public/index.php:50)