svtech-metrics.digital.cz Open in urlscan Pro
77.236.209.99  Public Scan

URL: https://svtech-metrics.digital.cz/
Submission: On November 29 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

SYMFONY EXCEPTION

Symfony Docs


SUSPICIOUSOPERATIONEXCEPTION BADREQUESTHTTPEXCEPTION


HTTP 400 BAD REQUEST


UNTRUSTED HOST "SVTECH-METRICS.DIGITAL.CZ".


 * Exceptions 2
 * Logs
 * Stack Traces 2


EXCEPTIONS 2


SYMFONY\COMPONENT\HTTPKERNEL\EXCEPTION\ BADREQUESTHTTPEXCEPTION

in vendor/symfony/http-kernel/HttpKernel.php (line 83)
 78. 
 79.         try {
 80.             return $this->handleRaw($request, $type);
 81.         } catch (\Exception $e) {
 82.             if ($e instanceof RequestExceptionInterface) {
 83.                 $e = new BadRequestHttpException($e->getMessage(), $e);
 84.             }
 85.             if (false === $catch) {
 86.                 $this->finishRequest($request, $type);
 87. 
 88.                 throw $e;

in vendor/symfony/http-kernel/Kernel.php->handle (line 201)
 196.         $this->boot();
 197.         ++$this->requestStackSize;
 198.         $this->resetServices = true;
 199. 
 200.         try {
 201.             return $this->getHttpKernel()->handle($request, $type, $catch);
 202.         } finally {
 203.             --$this->requestStackSize;
 204.         }
 205.     }
 206. 

Kernel->handle(object(Request)) in public/index.php (line 25)
 20.     Request::setTrustedHosts([$trustedHosts]);
 21. }
 22. 
 23. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
 24. $request = Request::createFromGlobals();
 25. $response = $kernel->handle($request);
 26. $response->send();
 27. $kernel->terminate($request, $response);
 28. 


SYMFONY\COMPONENT\HTTPFOUNDATION\EXCEPTION\ SUSPICIOUSOPERATIONEXCEPTION

Untrusted Host "svtech-metrics.digital.cz".

in vendor/symfony/http-foundation/Request.php (line 1197)
 1192.             if (!$this->isHostValid) {
 1193.                 return '';
 1194.             }
 1195.             $this->isHostValid = false;
 1196. 
 1197.             throw new SuspiciousOperationException(sprintf('Untrusted Host "%s".', $host));
 1198.         }
 1199. 
 1200.         return $host;
 1201.     }
 1202. 

in vendor/symfony/http-kernel/EventListener/ValidateRequestListener.php->getHost
(line 41)
 36. 
 37.         if ($request::getTrustedProxies()) {
 38.             $request->getClientIps();
 39.         }
 40. 
 41.         $request->getHost();
 42.     }
 43. 
 44.     /**
 45.      * {@inheritdoc}
 46.      */

in vendor/symfony/event-dispatcher/Debug/WrappedListener.php->onKernelRequest
(line 126)
 121.         $this->called = true;
 122.         $this->priority = $dispatcher->getListenerPriority($eventName, $this->listener);
 123. 
 124.         $e = $this->stopwatch->start($this->name, 'event_listener');
 125. 
 126.         ($this->optimizedListener ?? $this->listener)($event, $eventName, $dispatcher);
 127. 
 128.         if ($e->isStarted()) {
 129.             $e->stop();
 130.         }
 131. 

in vendor/symfony/event-dispatcher/EventDispatcher.php->__invoke (line 264)
 259.     {
 260.         foreach ($listeners as $listener) {
 261.             if ($event->isPropagationStopped()) {
 262.                 break;
 263.             }
 264.             $listener($event, $eventName, $this);
 265.         }
 266.     }
 267. 
 268.     /**
 269.      * Sorts the internal list of listeners for the given event by priority.

in vendor/symfony/event-dispatcher/EventDispatcher.php->doDispatch (line 239)
 234.      * @param object     $event     The event object to pass to the event handlers/listeners
 235.      */
 236.     protected function callListeners(iterable $listeners, string $eventName, $event)
 237.     {
 238.         if ($event instanceof Event) {
 239.             $this->doDispatch($listeners, $eventName, $event);
 240. 
 241.             return;
 242.         }
 243. 
 244.         $stoppable = $event instanceof ContractsEvent || $event instanceof StoppableEventInterface;

in vendor/symfony/event-dispatcher/EventDispatcher.php->callListeners (line 73)
 68.         } else {
 69.             $listeners = $this->getListeners($eventName);
 70.         }
 71. 
 72.         if ($listeners) {
 73.             $this->callListeners($listeners, $eventName, $event);
 74.         }
 75. 
 76.         return $event;
 77.     }
 78. 

in vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php->dispatch
(line 168)
 163.         try {
 164.             $this->beforeDispatch($eventName, $event);
 165.             try {
 166.                 $e = $this->stopwatch->start($eventName, 'section');
 167.                 try {
 168.                     $this->dispatcher->dispatch($event, $eventName);
 169.                 } finally {
 170.                     if ($e->isStarted()) {
 171.                         $e->stop();
 172.                     }
 173.                 }

in vendor/symfony/http-kernel/HttpKernel.php->dispatch (line 134)
 129.     {
 130.         $this->requestStack->push($request);
 131. 
 132.         // request
 133.         $event = new RequestEvent($this, $request, $type);
 134.         $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
 135. 
 136.         if ($event->hasResponse()) {
 137.             return $this->filterResponse($event->getResponse(), $request, $type);
 138.         }
 139. 

in vendor/symfony/http-kernel/HttpKernel.php->handleRaw (line 80)
 75.     public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
 76.     {
 77.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
 78. 
 79.         try {
 80.             return $this->handleRaw($request, $type);
 81.         } catch (\Exception $e) {
 82.             if ($e instanceof RequestExceptionInterface) {
 83.                 $e = new BadRequestHttpException($e->getMessage(), $e);
 84.             }
 85.             if (false === $catch) {

in vendor/symfony/http-kernel/Kernel.php->handle (line 201)
 196.         $this->boot();
 197.         ++$this->requestStackSize;
 198.         $this->resetServices = true;
 199. 
 200.         try {
 201.             return $this->getHttpKernel()->handle($request, $type, $catch);
 202.         } finally {
 203.             --$this->requestStackSize;
 204.         }
 205.     }
 206. 

Kernel->handle(object(Request)) in public/index.php (line 25)
 20.     Request::setTrustedHosts([$trustedHosts]);
 21. }
 22. 
 23. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
 24. $request = Request::createFromGlobals();
 25. $response = $kernel->handle($request);
 26. $response->send();
 27. $kernel->terminate($request, $response);
 28. 


LOGS

No log messages


STACK TRACES 2


[2/2] BADREQUESTHTTPEXCEPTION

Symfony\Component\HttpKernel\Exception\BadRequestHttpException:
Untrusted Host "svtech-metrics.digital.cz".

  at vendor/symfony/http-kernel/HttpKernel.php:83
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)



[1/2] SUSPICIOUSOPERATIONEXCEPTION

Symfony\Component\HttpFoundation\Exception\SuspiciousOperationException:
Untrusted Host "svtech-metrics.digital.cz".

  at vendor/symfony/http-foundation/Request.php:1197
  at Symfony\Component\HttpFoundation\Request->getHost()
     (vendor/symfony/http-kernel/EventListener/ValidateRequestListener.php:41)
  at Symfony\Component\HttpKernel\EventListener\ValidateRequestListener->onKernelRequest(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/Debug/WrappedListener.php:126)
  at Symfony\Component\EventDispatcher\Debug\WrappedListener->__invoke(object(RequestEvent), 'kernel.request', object(TraceableEventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:264)
  at Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:239)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(RequestEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:73)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php:168)
  at Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher->dispatch(object(RequestEvent), 'kernel.request')
     (vendor/symfony/http-kernel/HttpKernel.php:134)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw(object(Request), 1)
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle(object(Request), 1, true)
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle(object(Request))
     (public/index.php:25)