https://hub-dev.czech-kiosk.com/cron/sms/status

Exceptions

Couldn't resolve host name for "http://vpn.czech-kiosk.cz:46500/api/sms?guid=8OqZ6Ta2fcxZ".

Exceptions 2

Symfony\Component\HttpClient\Exception\ TransportException

  1.      * {@inheritdoc}
  2.      */
  3.     public function isFirst(): bool
  4.     {
  5.         $this->didThrow true;
  6.         throw new TransportException($this->errorMessage0$this->error);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.         }
  2.         try {
  3.             if (($response->initializer)($response)) {
  4.                 foreach (self::stream([$response]) as $chunk) {
  5.                     if ($chunk->isFirst()) {
  6.                         break;
  7.                     }
  8.                 }
  9.             }
  10.         } catch (\Throwable $e) {
  1.      * {@inheritdoc}
  2.      */
  3.     public function getContent(bool $throw true): string
  4.     {
  5.         if ($this->initializer) {
  6.             self::initialize($this);
  7.         }
  8.         if ($throw) {
  9.             $this->checkStatusCode();
  10.         }
  1.     {
  2.         $performing self::$performing;
  3.         self::$performing $performing || '_0' === curl_getinfo($this->handle, \CURLINFO_PRIVATE);
  4.         try {
  5.             return $this->doGetContent($throw);
  6.         } finally {
  7.             self::$performing $performing;
  8.         }
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function toArray(bool $throw true): array
  5.     {
  6.         if ('' === $content $this->getContent($throw)) {
  7.             throw new JsonException('Response body is empty.');
  8.         }
  9.         if (null !== $this->jsonData) {
  10.             return $this->jsonData;
CurlResponse->toArray() in src/Util/SMSUtil.php (line 198)
  1.     private function checkSMS(SMS $SMS)
  2.     {
  3.         $client HttpClient::create();
  4.         $response $client->request('GET'$this->endpoint 'sms?guid='.$SMS->getGuid());
  5.         $responseData $response->toArray(false);
  6.         if(!empty($responseData['data']['state']) && $responseData['data']['state']=='Sent') {
  7.             $SMS->setSentAt(new \DateTime($responseData['data']['sendingTime']));
  8.             $SMS->setIsSent(true);
  9.         }
SMSUtil->checkSMS() in src/Util/SMSUtil.php (line 186)
  1.     public function checkSMSStatus()
  2.     {
  3.         $data $this->SMSRepository->findSMSStatusFromQueue();
  4.         foreach ($data as $SMS) {
  5.             $this->checkSMS($SMS);
  6.         }
  7.         return true;
  8.     }
SMSUtil->checkSMSStatus() in src/Controller/CronController.php (line 40)
  1.      * @param SMSUtil $SMSUtil
  2.      * @return Response
  3.      */
  4.     public function smsStatus(SMSUtil $SMSUtil)
  5.     {
  6.         $SMSUtil->checkSMSStatus();
  7.         return Response::create('DONE');
  8.     }
  9.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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.     }
Kernel->handle() in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Symfony\Component\HttpClient\Exception\ TransportException

Couldn't resolve host name for "http://vpn.czech-kiosk.cz:46500/api/sms?guid=8OqZ6Ta2fcxZ".

  1.                         continue;
  2.                     }
  3.                 }
  4.                 $multi->handlesActivity[$id][] = null;
  5.                 $multi->handlesActivity[$id][] = \in_array($result, [\CURLE_OK, \CURLE_TOO_MANY_REDIRECTS], true) || '_0' === $waitFor || curl_getinfo($ch, \CURLINFO_SIZE_DOWNLOAD) === curl_getinfo($ch, \CURLINFO_CONTENT_LENGTH_DOWNLOAD) ? null : new TransportException(sprintf('%s for "%s".'curl_strerror($result), curl_getinfo($ch, \CURLINFO_EFFECTIVE_URL)));
  6.             }
  7.         } finally {
  8.             self::$performing false;
  9.         }
  10.     }
  1.             $timeoutMin $timeout ?? \INF;
  2.             /** @var ClientState $multi */
  3.             foreach ($runningResponses as $i => [$multi]) {
  4.                 $responses = &$runningResponses[$i][1];
  5.                 self::perform($multi$responses);
  6.                 foreach ($responses as $j => $response) {
  7.                     $timeoutMax $timeout ?? max($timeoutMax$response->timeout);
  8.                     $timeoutMin min($timeoutMin$response->timeout1);
  9.                     $chunk false;
  1.             throw new TransportException($response->info['error']);
  2.         }
  3.         try {
  4.             if (($response->initializer)($response)) {
  5.                 foreach (self::stream([$response]) as $chunk) {
  6.                     if ($chunk->isFirst()) {
  7.                         break;
  8.                     }
  9.                 }
  10.             }
  1.      * {@inheritdoc}
  2.      */
  3.     public function getContent(bool $throw true): string
  4.     {
  5.         if ($this->initializer) {
  6.             self::initialize($this);
  7.         }
  8.         if ($throw) {
  9.             $this->checkStatusCode();
  10.         }
  1.     {
  2.         $performing self::$performing;
  3.         self::$performing $performing || '_0' === curl_getinfo($this->handle, \CURLINFO_PRIVATE);
  4.         try {
  5.             return $this->doGetContent($throw);
  6.         } finally {
  7.             self::$performing $performing;
  8.         }
  9.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function toArray(bool $throw true): array
  5.     {
  6.         if ('' === $content $this->getContent($throw)) {
  7.             throw new JsonException('Response body is empty.');
  8.         }
  9.         if (null !== $this->jsonData) {
  10.             return $this->jsonData;
CurlResponse->toArray() in src/Util/SMSUtil.php (line 198)
  1.     private function checkSMS(SMS $SMS)
  2.     {
  3.         $client HttpClient::create();
  4.         $response $client->request('GET'$this->endpoint 'sms?guid='.$SMS->getGuid());
  5.         $responseData $response->toArray(false);
  6.         if(!empty($responseData['data']['state']) && $responseData['data']['state']=='Sent') {
  7.             $SMS->setSentAt(new \DateTime($responseData['data']['sendingTime']));
  8.             $SMS->setIsSent(true);
  9.         }
SMSUtil->checkSMS() in src/Util/SMSUtil.php (line 186)
  1.     public function checkSMSStatus()
  2.     {
  3.         $data $this->SMSRepository->findSMSStatusFromQueue();
  4.         foreach ($data as $SMS) {
  5.             $this->checkSMS($SMS);
  6.         }
  7.         return true;
  8.     }
SMSUtil->checkSMSStatus() in src/Controller/CronController.php (line 40)
  1.      * @param SMSUtil $SMSUtil
  2.      * @return Response
  3.      */
  4.     public function smsStatus(SMSUtil $SMSUtil)
  5.     {
  6.         $SMSUtil->checkSMSStatus();
  7.         return Response::create('DONE');
  8.     }
  9.     /**
  1.         $this->dispatcher->dispatch($eventKernelEvents::CONTROLLER_ARGUMENTS);
  2.         $controller $event->getController();
  3.         $arguments $event->getArguments();
  4.         // call controller
  5.         $response $controller(...$arguments);
  6.         // view
  7.         if (!$response instanceof Response) {
  8.             $event = new ViewEvent($this$request$type$response);
  9.             $this->dispatcher->dispatch($eventKernelEvents::VIEW);
  1.     public function handle(Request $request$type HttpKernelInterface::MASTER_REQUEST$catch true)
  2.     {
  3.         $request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
  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.     }
Kernel->handle() in public/index.php (line 25)
  1.     Request::setTrustedHosts([$trustedHosts]);
  2. }
  3. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  4. $request Request::createFromGlobals();
  5. $response $kernel->handle($request);
  6. $response->send();
  7. $kernel->terminate($request$response);

Stack Traces 2

[2/2] TransportException

Symfony\Component\HttpClient\Exception\TransportException:
Couldn't resolve host name for "http://vpn.czech-kiosk.cz:46500/api/sms?guid=8OqZ6Ta2fcxZ".

  at vendor/symfony/http-client/Chunk/ErrorChunk.php:64
  at Symfony\Component\HttpClient\Chunk\ErrorChunk->isFirst()
     (vendor/symfony/http-client/Response/ResponseTrait.php:245)
  at Symfony\Component\HttpClient\Response\CurlResponse::initialize()
     (vendor/symfony/http-client/Response/ResponseTrait.php:99)
  at Symfony\Component\HttpClient\Response\CurlResponse->doGetContent()
     (vendor/symfony/http-client/Response/CurlResponse.php:220)
  at Symfony\Component\HttpClient\Response\CurlResponse->getContent()
     (vendor/symfony/http-client/Response/ResponseTrait.php:138)
  at Symfony\Component\HttpClient\Response\CurlResponse->toArray()
     (src/Util/SMSUtil.php:198)
  at App\Util\SMSUtil->checkSMS()
     (src/Util/SMSUtil.php:186)
  at App\Util\SMSUtil->checkSMSStatus()
     (src/Controller/CronController.php:40)
  at App\Controller\CronController->smsStatus()
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:25)                

[1/2] TransportException

Symfony\Component\HttpClient\Exception\TransportException:
Couldn't resolve host name for "http://vpn.czech-kiosk.cz:46500/api/sms?guid=8OqZ6Ta2fcxZ".

  at vendor/symfony/http-client/Response/CurlResponse.php:294
  at Symfony\Component\HttpClient\Response\CurlResponse::perform()
     (vendor/symfony/http-client/Response/ResponseTrait.php:336)
  at Symfony\Component\HttpClient\Response\CurlResponse::stream()
     (vendor/symfony/http-client/Response/ResponseTrait.php:244)
  at Symfony\Component\HttpClient\Response\CurlResponse::initialize()
     (vendor/symfony/http-client/Response/ResponseTrait.php:99)
  at Symfony\Component\HttpClient\Response\CurlResponse->doGetContent()
     (vendor/symfony/http-client/Response/CurlResponse.php:220)
  at Symfony\Component\HttpClient\Response\CurlResponse->getContent()
     (vendor/symfony/http-client/Response/ResponseTrait.php:138)
  at Symfony\Component\HttpClient\Response\CurlResponse->toArray()
     (src/Util/SMSUtil.php:198)
  at App\Util\SMSUtil->checkSMS()
     (src/Util/SMSUtil.php:186)
  at App\Util\SMSUtil->checkSMSStatus()
     (src/Controller/CronController.php:40)
  at App\Controller\CronController->smsStatus()
     (vendor/symfony/http-kernel/HttpKernel.php:158)
  at Symfony\Component\HttpKernel\HttpKernel->handleRaw()
     (vendor/symfony/http-kernel/HttpKernel.php:80)
  at Symfony\Component\HttpKernel\HttpKernel->handle()
     (vendor/symfony/http-kernel/Kernel.php:201)
  at Symfony\Component\HttpKernel\Kernel->handle()
     (public/index.php:25)