^ GuzzleHttp\Exception\ServerException {#1323
  #message: """
    Server error: `POST https://sandbox.api.printoclock.com/login_check` resulted in a `502 Bad Gateway` response:\n
    <html>\r\n
    <head><title>502 Bad Gateway</title></head>\r\n
    <body bgcolor="white">\r\n
    <center><h1>502 Bad Gateway</h1></center>\r\n
     (truncated...)\n
    """
  #code: 502
  #file: "/var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
  #line: 113
  -request: GuzzleHttp\Psr7\Request {#1310
    -method: "POST"
    -requestTarget: null
    -uri: GuzzleHttp\Psr7\Uri {#447
      -scheme: "https"
      -userInfo: ""
      -host: "sandbox.api.printoclock.com"
      -port: null
      -path: "/login_check"
      -query: ""
      -fragment: ""
    }
    -headers: array:3 [
      "User-Agent" => array:1 [
        0 => "GuzzleHttp/6.5.5 curl/7.64.0 PHP/8.3.6"
      ]
      "Content-Type" => array:1 [
        0 => "application/json"
      ]
      "Host" => array:1 [
        0 => "sandbox.api.printoclock.com"
      ]
    ]
    -headerNames: array:3 [
      "user-agent" => "User-Agent"
      "content-type" => "Content-Type"
      "host" => "Host"
    ]
    -protocol: "1.1"
    -stream: GuzzleHttp\Psr7\Stream {#1308
      -stream: stream resource @1205
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 48
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -response: GuzzleHttp\Psr7\Response {#1320
    -reasonPhrase: "Bad Gateway"
    -statusCode: 502
    -headers: array:5 [
      "Server" => array:1 [
        0 => "nginx"
      ]
      "Date" => array:1 [
        0 => "Fri, 19 Apr 2024 03:35:11 GMT"
      ]
      "Content-Type" => array:1 [
        0 => "text/html"
      ]
      "Content-Length" => array:1 [
        0 => "166"
      ]
      "Connection" => array:1 [
        0 => "keep-alive"
      ]
    ]
    -headerNames: array:5 [
      "server" => "Server"
      "date" => "Date"
      "content-type" => "Content-Type"
      "content-length" => "Content-Length"
      "connection" => "Connection"
    ]
    -protocol: "1.1"
    -stream: GuzzleHttp\Psr7\Stream {#1317
      -stream: stream resource @1212
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 166
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -handlerContext: []
  trace: {
    /var/www/vhosts/lrpweb.fr/httpdocs/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/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/guzzle/src/Middleware.php:65 {
      GuzzleHttp\Middleware::GuzzleHttp\{closure} …
      ›     }    throw RequestException::create($request, $response);}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:204 {
      GuzzleHttp\Promise\Promise::callHandler($index, $value, array $handler) …
      ›     unset($handler);    $promise->resolve($f($value));} elseif ($index === 1) {
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:153 {
      GuzzleHttp\Promise\Promise::GuzzleHttp\Promise\{closure} …
      › foreach ($handlers as $handler) {    self::callHandler($id, $value, $handler);}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/TaskQueue.php:48 {
      GuzzleHttp\Promise\TaskQueue->run() …
      ›     /** @var callable $task */    $task();}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:248 {
      GuzzleHttp\Promise\Promise->invokeWaitFn() …
      ›     $this->waitFn = null;    $wfn(true);} catch (\Exception $reason) {
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:224 {
      GuzzleHttp\Promise\Promise->waitIfPending() …
      › } elseif ($this->waitFn) {    $this->invokeWaitFn();} elseif ($this->waitList) {
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:269 {
      GuzzleHttp\Promise\Promise->invokeWaitList() …
      › do {    $result->waitIfPending();    $result = $result->result;
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:226 {
      GuzzleHttp\Promise\Promise->waitIfPending() …
      › } elseif ($this->waitList) {    $this->invokeWaitList();} else {
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/promises/src/Promise.php:62 {
      GuzzleHttp\Promise\Promise->wait($unwrap = true) …
      › {    $this->waitIfPending();}
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/guzzle/src/Client.php:182 {
      GuzzleHttp\Client->request($method, $uri = '', array $options = []) …
      ›     $options[RequestOptions::SYNCHRONOUS] = true;    return $this->requestAsync($method, $uri, $options)->wait();}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/guzzlehttp/guzzle/src/Client.php:95 {
      GuzzleHttp\Client->__call($method, $args) …
      ›         ? $this->requestAsync(substr($method, 0, -5), $uri, $opts)        : $this->request($method, $uri, $opts);}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/src/SDK/PrintoclockBAPI.php:81 {
      App\SDK\PrintoclockBAPI->getToken() …
      › $data = ['username' => $this->login, 'password' => $this->password];$response = $this->client->post($url, array(RequestOptions::JSON => $data));$result = json_decode($response->getBody()->getContents());
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/src/SDK/PrintoclockBAPI.php:267 {
      App\SDK\PrintoclockBAPI->request($method, $endpoint, $data = [], $filesPath = []) …
      › if (!$this->accessToken) {    $this->getToken();}
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/src/SDK/PrintoclockBAPI.php:96 {
      App\SDK\PrintoclockBAPI->getProducts($page = 1, $limit = self::DEFAULT_PAGE_LIMIT, $filter = []) …
      › {    $result = $this->request('get', '/products', array('page' => $page, 'limit' => $limit, 'filter' => $filter));}
    /var/www/vhosts/lrpweb.fr/httpdocs/src/Controller/PrintoClock/ProductController.php:87 {
      App\Controller\PrintoClock\ProductController->listAction(Request $request) …
      › $filter = $request->query->get('filter', []);$response = $this->businessApiClient->getProducts($page, $limit, $filter);$products = json_decode($response->getBody()->getContents(), true);
    }
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/symfony/http-kernel/HttpKernel.php:163 {
      Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
      › // call controller$response = $controller(...$arguments);}
    /var/www/vhosts/lrpweb.fr/httpdocs/vendor/symfony/http-kernel/HttpKernel.php:75 {
      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/vhosts/lrpweb.fr/httpdocs/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/vhosts/lrpweb.fr/httpdocs/public/index.php:20 {$request = Request::createFromGlobals();\r$response = $kernel->handle($request);\r$response->send();\r
    }
  }
}
Nos produits
×