GuzzleHttp\Exception\ClientException {#1574
-request: GuzzleHttp\Psr7\Request {#1563
-method: "GET"
-requestTarget: null
-uri: GuzzleHttp\Psr7\Uri {#1548
-scheme: "http"
-userInfo: ""
-host: "api.local"
-port: null
-path: "/api/v1/public/site/"
-query: "langSign=uk"
-fragment: ""
}
-headers: array:3 [
"User-Agent" => array:1 [
0 => "GuzzleHttp/6.5.5 curl/7.74.0 PHP/7.3.33"
]
"Host" => array:1 [
0 => "api.local"
]
"apiKey" => array:1 [
0 => "123456789123456789000"
]
]
-headerNames: array:3 [
"user-agent" => "User-Agent"
"host" => "Host"
"apikey" => "apiKey"
]
-protocol: "1.1"
-stream: GuzzleHttp\Psr7\Stream {#1562
-stream: stream resource @624
wrapper_type: "PHP"
stream_type: "TEMP"
mode: "w+b"
unread_bytes: 0
seekable: true
uri: "php://temp"
options: []
}
-size: 0
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
-response: GuzzleHttp\Psr7\Response {#1570
-reasonPhrase: "Not Found"
-statusCode: 404
-headers: array:7 [
"Server" => array:1 [
0 => "nginx/1.27.0"
]
"Content-Type" => array:1 [
0 => "text/html; charset=UTF-8"
]
"Transfer-Encoding" => array:1 [
0 => "chunked"
]
"Connection" => array:1 [
0 => "keep-alive"
]
"X-Powered-By" => array:1 [
0 => "PHP/7.3.33"
]
"Cache-Control" => array:1 [
0 => "no-cache, private"
]
"date" => array:1 [
0 => "Thu, 21 Nov 2024 05:10:46 GMT"
]
]
-headerNames: array:7 [
"server" => "Server"
"content-type" => "Content-Type"
"transfer-encoding" => "Transfer-Encoding"
"connection" => "Connection"
"x-powered-by" => "X-Powered-By"
"cache-control" => "Cache-Control"
"date" => "date"
]
-protocol: "1.1"
-stream: GuzzleHttp\Psr7\Stream {#1568
-stream: stream resource @630
wrapper_type: "PHP"
stream_type: "TEMP"
mode: "w+b"
unread_bytes: 0
seekable: true
uri: "php://temp"
options: []
}
-size: 6609
-seekable: true
-readable: true
-writable: true
-uri: "php://temp"
-customMetadata: []
}
}
-handlerContext: []
#message: """
Client error: `GET http://api.local/api/v1/public/site/?langSign=uk` resulted in a `404 Not Found` response:\n
<!DOCTYPE html>\n
<html lang="en">\n
<head>\n
<meta charset="utf-8">\n
<meta name="viewport" content="width= (truncated...)\n
"""
#code: 404
#file: "/var/www/html/polis.v2.widget/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
#line: 113
trace: {
/var/www/html/polis.v2.widget/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
GuzzleHttp\Exception\RequestException::create(RequestInterface $request, ResponseInterface $response = null, Exception $previous = null, array $ctx = []) …
›
› return new $className($message, $request, $response, $previous, $ctx);
› }
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/guzzle/src/Middleware.php:65 {
GuzzleHttp\Middleware::GuzzleHttp\{closure} …
› }
› throw RequestException::create($request, $response);
› }
arguments: {
$request: GuzzleHttp\Psr7\Request {#1563}
$response: GuzzleHttp\Psr7\Response {#1570}
}
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:204 {
GuzzleHttp\Promise\Promise::callHandler($index, $value, array $handler) …
› unset($handler);
› $promise->resolve($f($value));
› } elseif ($index === 1) {
arguments: {
GuzzleHttp\Psr7\Response {#1570}
}
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:153 {
GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure} …
› foreach ($handlers as $handler) {
› self::callHandler($id, $value, $handler);
› }
arguments: {
$index: 1
$value: GuzzleHttp\Psr7\Response {#1570}
$handler: null
}
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/TaskQueue.php:48 {
GuzzleHttp\Promise\TaskQueue->run() …
› /** @var callable $task */
› $task();
› }
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:248 {
GuzzleHttp\Promise\Promise->invokeWaitFn() …
› $this->waitFn = null;
› $wfn(true);
› } catch (\Exception $reason) {
arguments: {
true
}
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:224 {
GuzzleHttp\Promise\Promise->waitIfPending() …
› } elseif ($this->waitFn) {
› $this->invokeWaitFn();
› } elseif ($this->waitList) {
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:269 {
GuzzleHttp\Promise\Promise->invokeWaitList() …
› do {
› $result->waitIfPending();
› $result = $result->result;
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:226 {
GuzzleHttp\Promise\Promise->waitIfPending() …
› } elseif ($this->waitList) {
› $this->invokeWaitList();
› } else {
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/promises/src/Promise.php:62 {
GuzzleHttp\Promise\Promise->wait($unwrap = true) …
› {
› $this->waitIfPending();
›
}
/var/www/html/polis.v2.widget/vendor/guzzlehttp/guzzle/src/Client.php:129 {
GuzzleHttp\Client->send(RequestInterface $request, array $options = []) …
› $options[RequestOptions::SYNCHRONOUS] = true;
› return $this->sendAsync($request, $options)->wait();
› }
}
/var/www/html/polis.v2.widget/app/Api/PolisOrder.php:57 {
App\Api\PolisOrder->sendRequest($action = '', $method = 'GET', $data = null) …
› $client = new Client();
› return $client->send($request);
› }
arguments: {
$request: GuzzleHttp\Psr7\Request {#1535 …}
}
}
/var/www/html/polis.v2.widget/app/Api/PolisModel.php:19 {
App\Api\PolisModel::sendRequest($action, $method = 'GET', $data = false, $status = 200) …
› try {
› $response = PolisOrder::$connector->sendRequest($action, $method, $data);
› } catch (\GuzzleHttp\Exception\RequestException $e) {
arguments: {
$action: "site/"
$method: "GET"
$data: false
}
}
/var/www/html/polis.v2.widget/app/Api/Models/Site.php:13 {
App\Api\Models\Site::search($key) …
› {
› $data = self::sendRequest(self::$action . "/" . $key);
› if ($data['data']) {
arguments: {
$action: "site/"
}
}
/var/www/html/polis.v2.widget/app/Http/Middleware/Widget.php:24 {
App\Http\Middleware\Widget->handle($request, Closure $next) …
› $widget_key = Config::get('app.widget');
› $site = Site::search($widget_key);
› if ($site) {
arguments: {
$key: ""
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
Illuminate\Routing\Middleware\SubstituteBindings->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
Illuminate\View\Middleware\ShareErrorsFromSession->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/app/Http/Middleware/Locale.php:21 {
App\Http\Middleware\Locale->handle($request, Closure $next) …
› }
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:56 {
Illuminate\Session\Middleware\StartSession->handle($request, Closure $next) …
›
› $response = $next($request);
›
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle($request, Closure $next) …
› {
› $response = $next($request);
›
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67 {
Illuminate\Cookie\Middleware\EncryptCookies->handle($request, Closure $next) …
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Routing/Router.php:683 {
Illuminate\Routing\Router->runRouteWithinStack(Route $route, Request $request) …
› );
› });
› }
arguments: {
$destination: Closure($request) {#1453 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Routing/Router.php:658 {
Illuminate\Routing\Router->runRoute(Request $request, Route $route) …
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
arguments: {
$route: Illuminate\Routing\Route {#494 …}
$request: Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Routing/Router.php:624 {
Illuminate\Routing\Router->dispatchToRoute(Request $request) …
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
arguments: {
$request: Illuminate\Http\Request {#51 …}
$route: Illuminate\Routing\Route {#494 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Routing/Router.php:613 {
Illuminate\Routing\Router->dispatch(Request $request) …
›
› return $this->dispatchToRoute($request);
› }
arguments: {
$request: Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:170 {
Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure} …
›
› return $this->router->dispatch($request);
› };
arguments: {
$request: Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:130 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› try {
› return $destination($passable);
› } catch (Exception $e) {
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/proengsoft/laravel-jsvalidation/src/RemoteValidationMiddleware.php:61 {
Proengsoft\JsValidation\RemoteValidationMiddleware->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21 {
Illuminate\Foundation\Http\Middleware\TransformsRequest->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63 {
Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle($request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/fideloper/proxy/src/TrustProxies.php:57 {
Fideloper\Proxy\TrustProxies->handle(Request $request, Closure $next) …
›
› return $next($request);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:171 {
Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure} …
› $carry = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
arguments: {
$request: Illuminate\Http\Request {#51 …}
$next: Closure($passable) {#1436 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:105 {
Illuminate\Pipeline\Pipeline->then(Closure $destination) …
›
› return $pipeline($this->passable);
› }
arguments: {
Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:145 {
Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter($request) …
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
arguments: {
$destination: Closure($request) {#30 …}
}
}
/var/www/html/polis.v2.widget/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:110 {
Illuminate\Foundation\Http\Kernel->handle($request) …
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
arguments: {
$request: Illuminate\Http\Request {#51 …}
}
}
/var/www/html/polis.v2.widget/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
arguments: {
$request: Illuminate\Http\Request {#51 …}
}
}
}
}