"App\Modules\Base\Services\Pharmao\Resources\AccessTokenCreator::createAccessToken"
ServerException {#439
-request: Request {#428
-method: "POST"
-requestTarget: null
-uri: Uri {#424
-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.74.0 PHP/7.4.33"
]
"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 {#426
-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 {#436
-reasonPhrase: "Internal Server Error"
-statusCode: 500
-headers: array:5 [
"Date" => array:1 [
0 => "Tue, 23 Apr 2024 22:51:21 GMT"
]
"Server" => array:1 [
0 => "Apache/2.4.59 (Debian)"
]
"Content-Length" => array:1 [
0 => "0"
]
"Connection" => array:1 [
0 => "close"
]
"Content-Type" => array:1 [
0 => "text/html; charset=UTF-8"
]
]
-headerNames: array:5 [
"date" => "Date"
"server" => "Server"
"content-length" => "Content-Length"
"connection" => "Connection"
"content-type" => "Content-Type"
]
-protocol: "1.0"
-stream: Stream {#434
-stream: stream resource @11
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: []
}
}
-handlerContext: []
#message: "Server error: `POST https://ws-pro.pharmao.fr/api/v1/create-cached-token` resulted in a `500 Internal Server Error` response"
#code: 500
#file: "/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php"
#line: 113
trace: {
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/guzzle/src/Exception/RequestException.php:113 {
›
› return new $className($message, $request, $response, $previous, $ctx);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/guzzle/src/Middleware.php:66 {
› }
› throw RequestException::create($request, $response);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:203 {
› if (isset($handler[$index])) {
› $promise->resolve($handler[$index]($value));
› } elseif ($index === 1) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:156 {
› foreach ($handlers as $handler) {
› self::callHandler($id, $value, $handler);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/TaskQueue.php:47 {
› while ($task = array_shift($this->queue)) {
› $task();
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:246 {
› $this->waitFn = null;
› $wfn(true);
› } catch (\Exception $reason) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:223 {
› } elseif ($this->waitFn) {
› $this->invokeWaitFn();
› } elseif ($this->waitList) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:267 {
› while (true) {
› $result->waitIfPending();
›
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:225 {
› } elseif ($this->waitList) {
› $this->invokeWaitList();
› } else {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/promises/src/Promise.php:62 {
› {
› $this->waitIfPending();
›
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/guzzlehttp/guzzle/src/Client.php:131 {
› $options[RequestOptions::SYNCHRONOUS] = true;
› return $this->requestAsync($method, $uri, $options)->wait();
› }
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Resources/AccessTokenCreator.php:73 {
› 'body' => json_encode($data),
› 'headers' => $this->defaultHeaders(),
› ]);
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Resources/AccessTokenCreator.php:134 {
› if (empty($fileName)) {
› $this->createAccessToken();
›
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Client.php:48 {
› $accessTokenCreator = new AccessTokenCreator();
› $response = $accessTokenCreator->manageAccessToken();
› if ($response && isset($response->access_token)) {
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Client.php:38 {
›
› $this->manageAccessToken();
› }
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Resources/AbstractResources.php:26 {
› {
› $this->client = new Client();
› }
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmao/Pharmao.php:171 {
› {
› $productResource = new Product();
›
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Base/Services/Pharmacy/ProductService.php:132 {
›
› $response = $this->pharmaoClient->listAllProducts($params);
›
}
/var/www/html/pharmacies.pharmao.fr/web/app/Modules/Front/Controllers/ProductController.php:75 {
›
› $response = $this->productService->listAllProducts($params);
›
}
App\Modules\Front\Controllers\ProductController->index() {}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54 {
› {
› return call_user_func_array([$this, $method], $parameters);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:45 {
› if (method_exists($controller, 'callAction')) {
› return $controller->callAction($method, $parameters);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Route.php:212 {
› return $this->controllerDispatcher()->dispatch(
› $this, $this->getController(), $this->getControllerMethod()
› );
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Route.php:169 {
› if ($this->isControllerAction()) {
› return $this->runController();
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php:682 {
› return $this->prepareResponse(
› $request, $route->run()
› );
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/app/Http/Middleware/SetLocale.php:24 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:75 {
› ) {
› return tap($next($request), function ($response) use ($request) {
› if ($this->shouldAddXsrfTokenCookie()) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:63 {
›
› $response = $next($request);
›
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37 {
› {
› $response = $next($request);
›
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:66 {
› {
› return $this->encrypt($next($this->decrypt($request)));
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php:684 {
› );
› });
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php:659 {
› return $this->prepareResponse($request,
› $this->runRouteWithinStack($route, $request)
› );
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php:625 {
› {
› return $this->runRoute($request, $this->findRoute($request));
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Router.php:614 {
›
› return $this->dispatchToRoute($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:176 {
›
› return $this->router->dispatch($request);
› };
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:30 {
› try {
› return $destination($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/barryvdh/laravel-debugbar/src/Middleware/InjectDebugbar.php:58 {
› if (!$this->debugbar->isEnabled() || $this->inExceptArray($request)) {
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/fideloper/proxy/src/TrustProxies.php:57 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:31 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:62 {
›
› return $next($request);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:151 {
› $response = method_exists($pipe, $this->method)
› ? $pipe->{$this->method}(...$parameters)
› : $pipe(...$parameters);
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php:53 {
›
› return $callable($passable);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:104 {
›
› return $pipeline($this->passable);
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:151 {
› ->through($this->app->shouldSkipMiddleware() ? [] : $this->middleware)
› ->then($this->dispatchToRouter());
› }
}
/var/www/html/pharmacies.pharmao.fr/web/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:116 {
›
› $response = $this->sendRequestThroughRouter($request);
› } catch (Exception $e) {
}
/var/www/html/pharmacies.pharmao.fr/web/public/index.php:55 {
› $response = $kernel->handle(
› $request = Illuminate\Http\Request::capture()
› );
}
}
}