"App\Modules\Base\Services\Pharmao\Resources\AccessTokenCreator::createAccessToken"
ClientException {#431
  -request: Request {#420
    -method: "POST"
    -requestTarget: null
    -uri: Uri {#416
      -scheme: "https"
      -userInfo: ""
      -host: "ws-pro.pharmao.fr"
      -port: null
      -path: "/api/v1/create-cached-token"
      -query: ""
      -fragment: ""
    }
    -headers: array:3 [
      "User-Agent" => array:1 [
        0 => "GuzzleHttp/6.3.3 curl/7.52.1 PHP/7.4.18"
      ]
      "Host" => array:1 [
        0 => "ws-pro.pharmao.fr"
      ]
      "Content-Type" => array:1 [
        0 => "application/json"
      ]
    ]
    -headerNames: array:3 [
      "user-agent" => "User-Agent"
      "host" => "Host"
      "content-type" => "Content-Type"
    ]
    -protocol: "1.1"
    -stream: Stream {#418
      -stream: stream resource @9
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 108
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -response: Response {#428
    -reasonPhrase: "Too Many Requests"
    -statusCode: 429
    -headers: array:5 [
      "Date" => array:1 [
        0 => "Fri, 23 Jul 2021 16:10:08 GMT"
      ]
      "Server" => array:1 [
        0 => "Apache/2.4.10 (Debian)"
      ]
      "Cache-Control" => array:1 [
        0 => "no-cache, private"
      ]
      "Transfer-Encoding" => array:1 [
        0 => "chunked"
      ]
      "Content-Type" => array:1 [
        0 => "application/json"
      ]
    ]
    -headerNames: array:5 [
      "date" => "Date"
      "server" => "Server"
      "cache-control" => "Cache-Control"
      "transfer-encoding" => "Transfer-Encoding"
      "content-type" => "Content-Type"
    ]
    -protocol: "1.1"
    -stream: Stream {#426
      -stream: stream resource @11
        wrapper_type: "PHP"
        stream_type: "TEMP"
        mode: "w+b"
        unread_bytes: 0
        seekable: true
        uri: "php://temp"
        options: []
      }
      -size: 41
      -seekable: true
      -readable: true
      -writable: true
      -uri: "php://temp"
      -customMetadata: []
    }
  }
  -handlerContext: []
  #message: """
    Client error: `POST https://ws-pro.pharmao.fr/api/v1/create-cached-token` resulted in a `429 Too Many Requests` response:\n
    {"code":429,"error":"Too Many Attempts."}\n
    """
  #code: 429
  #file: "/home/pnbzknh/www/pharmacies/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
  #line: 113
  trace: {
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
      › 
      ›     return new $className($message, $request, $response, $previous, $ctx);}
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/guzzle/src/Middleware.php:66 {    }    throw RequestException::create($request, $response);}
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:203 {if (isset($handler[$index])) {    $promise->resolve($handler[$index]($value));} elseif ($index === 1) {
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:156 {foreach ($handlers as $handler) {    self::callHandler($id, $value, $handler);}
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/TaskQueue.php:47 {while ($task = array_shift($this->queue)) {    $task();}
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:246 {    $this->waitFn = null;    $wfn(true);} catch (\Exception $reason) {
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:223 {} elseif ($this->waitFn) {    $this->invokeWaitFn();} elseif ($this->waitList) {
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:267 {while (true) {    $result->waitIfPending();}
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:225 {} elseif ($this->waitList) {    $this->invokeWaitList();} else {
    }
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/promises/src/Promise.php:62 {{    $this->waitIfPending();}
    /home/pnbzknh/www/pharmacies/vendor/guzzlehttp/guzzle/src/Client.php:131 {    $options[RequestOptions::SYNCHRONOUS] = true;    return $this->requestAsync($method, $uri, $options)->wait();}
    }
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Resources/AccessTokenCreator.php:73 {    'body' => json_encode($data),    'headers' => $this->defaultHeaders(),]);
    }
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Resources/AccessTokenCreator.php:134 {if (empty($fileName)) {    $this->createAccessToken();}
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Client.php:48 {$accessTokenCreator = new AccessTokenCreator();$response = $accessTokenCreator->manageAccessToken();if ($response && isset($response->access_token)) {
    }
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Client.php:38 {
      › 
      ›     $this->manageAccessToken();}
    }
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Resources/AbstractResources.php:26 {{    $this->client = new Client();}
    }
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmao/Pharmao.php:155 {{    $productResource = new Product();}
    /home/pnbzknh/www/pharmacies/app/Modules/Base/Services/Pharmacy/ProductService.php:113 {
      › 
      › $response = $this->pharmaoClient->listAllProducts($params);}
    /home/pnbzknh/www/pharmacies/app/Modules/Front/Controllers/ProductController.php:69 {
      › 
      › $response = $this->productService->listAllProducts($params);}
    App\Modules\Front\Controllers\ProductController->index() {}
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {{    return call_user_func_array([$this, $method], $parameters);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {if (method_exists($controller, 'callAction')) {    return $controller->callAction($method, $parameters);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212 {return $this->controllerDispatcher()->dispatch(    $this, $this->getController(), $this->getControllerMethod());
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169 {if ($this->isControllerAction()) {    return $this->runController();}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {return $this->prepareResponse(    $request, $route->run());
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/app/Http/Middleware/SetLocale.php:24 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 {) {    return tap($next($request), function ($response) use ($request) {        if ($this->shouldAddXsrfTokenCookie()) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
      › 
      › $response = $next($request);}
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {{    $response = $next($request);}
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {{    return $this->encrypt($next($this->decrypt($request)));}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 {                        );                    });}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 {return $this->prepareResponse($request,    $this->runRouteWithinStack($route, $request));
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 {{    return $this->runRoute($request, $this->findRoute($request));}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 {
      › 
      ›     return $this->dispatchToRoute($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
      › 
      ›     return $this->router->dispatch($request);};
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {try {    return $destination($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:58 {if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {    return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/fideloper/proxy/src/TrustProxies.php:57 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
      › 
      ›     return $next($request);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {$response = method_exists($pipe, $this->method)                ? $pipe->{$this->method}(...$parameters)                : $pipe(...$parameters);
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
      › 
      ›     return $callable($passable);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
      › 
      ›     return $pipeline($this->passable);}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {                ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)                ->then($this->dispatchToRouter());}
    }
    /home/pnbzknh/www/pharmacies/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
      › 
      ›     $response = $this->sendRequestThroughRouter($request);} catch (Exception $e) {
    }
    /home/pnbzknh/www/pharmacies/public/index.php:55 {$response = $kernel->handle(    $request = Illuminate\Http\Request::capture());
    }
    /home/pnbzknh/www/pharmacies/server.php:21 {
      › 
      › require_once __DIR__.'/public/index.php';arguments: {
        "/home/pnbzknh/www/pharmacies/public/index.php"
      }
    }
  }
}