^ Unirest\Exception {#182
#message: "Failed to connect to docms2.prod.svc.cluster.local port 80: Connection refused"
#code: 0
#file: "/var/www/app/vendor/mashape/unirest-php/src/Unirest/Request.php"
#line: 476
trace: {
/var/www/app/vendor/mashape/unirest-php/src/Unirest/Request.php:476 {
Unirest\Request::send($method, $url, $body = null, $headers = [], $username = null, $password = null) …
› if ($error) {
› throw new Exception($error);
› }
}
/var/www/app/vendor/mashape/unirest-php/src/Unirest/Request.php:292 {
Unirest\Request::post($url, $headers = [], $body = null, $username = null, $password = null) …
› {
› return self::send(Method::POST, $url, $body, $headers, $username, $password);
› }
}
/var/www/app/src/Models/ApiServiceBase.php:114 {
App\Models\ApiServiceBase->post($endpoint, $data, $query, $headers = []) …
› try {
› $response = \Unirest\Request::post($url, $headers, $body);
›
}
/var/www/app/src/Models/ApiServiceBase.php:66 {
App\Models\ApiServiceBase->doPostRaw($endpoint, $query, $data, $headers = […2]) …
› public function doPostRaw($endpoint, $query, $data, $headers = ['Content-Type' => 'application/json', 'Accept' => 'application/json']) {
› [$rcode, $rbody, $rheaders] = $this->post($endpoint, $data, $query, $headers);
›
}
/var/www/app/src/Service/GraphApiService.php:59 {
App\Service\GraphApiService->request(string $query, array $variables = [], string $operationName = null, string $filterOnGroupName = null) …
› $data = null;
› if($data_raw = $this->doPostRaw($this->graph_endpont, [], $payload)) {
› if(is_string($data_raw)) {
}
/var/www/app/src/Service/ProductService.php:47 {
App\Service\ProductService->loadProducts() …
› }
› ', $variables, 'GetProducts', 'products');
›
}
/var/www/app/src/Service/ProductService.php:31 {
App\Service\ProductService->onKernelRequest($event) …
› public function onKernelRequest($event){
› $this->loadProducts();
› return;
}
/var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:270 {
Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure} …
› }
› ($closure = \Closure::fromCallable($listener))(...$args);
› };
}
/var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:230 {
Symfony\Component\EventDispatcher\EventDispatcher->callListeners(iterable $listeners, string $eventName, object $event) …
› }
› $listener($event, $eventName, $this);
› }
}
/var/www/app/vendor/symfony/event-dispatcher/EventDispatcher.php:59 {
Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object $event, string $eventName = null): object …
› if ($listeners) {
› $this->callListeners($listeners, $eventName, $event);
› }
}
/var/www/app/vendor/symfony/http-kernel/HttpKernel.php:128 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› $event = new RequestEvent($this, $request, $type);
› $this->dispatcher->dispatch($event, KernelEvents::REQUEST);
›
}
/var/www/app/vendor/symfony/http-kernel/HttpKernel.php:74 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->handleRaw($request, $type);
› } catch (\Exception $e) {
}
/var/www/app/vendor/symfony/http-kernel/Kernel.php:202 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
}
/var/www/app/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php:86 {
Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(HttpKernelInterface $kernel, Request $request, int $type, bool $catch): Response …
› try {
› return $kernel->handle($request, $type, $catch);
› } finally {
}
/var/www/app/vendor/symfony/http-kernel/HttpCache/HttpCache.php:479 {
Symfony\Component\HttpKernel\HttpCache\HttpCache->forward(Request $request, bool $catch = false, Response $entry = null) …
› // always a "master" request (as the real master request can be in cache)
› $response = SubRequestHandler::handle($this->kernel, $request, HttpKernelInterface::MAIN_REQUEST, $catch);
›
}
/var/www/app/vendor/symfony/framework-bundle/HttpCache/HttpCache.php:73 {
Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache->forward(Request $request, bool $catch = false, Response $entry = null) …
›
› return parent::forward($request, $catch, $entry);
› }
}
/var/www/app/vendor/symfony/http-kernel/HttpCache/HttpCache.php:452 {
Symfony\Component\HttpKernel\HttpCache\HttpCache->fetch(Request $request, bool $catch = false) …
›
› $response = $this->forward($subRequest, $catch);
›
}
/var/www/app/vendor/symfony/http-kernel/HttpCache/HttpCache.php:346 {
Symfony\Component\HttpKernel\HttpCache\HttpCache->lookup(Request $request, bool $catch = false) …
›
› return $this->fetch($request, $catch);
› }
}
/var/www/app/vendor/symfony/http-kernel/HttpCache/HttpCache.php:224 {
Symfony\Component\HttpKernel\HttpCache\HttpCache->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true) …
› } else {
› $response = $this->lookup($request, $catch);
› }
}
/var/www/app/public/index.php:56 {
› {
› $response = $kernel->handle($request);
› }
}
}
}