[
"exception" => Symfony\Component\HttpClient\Exception\ClientException {#451
#message: "HTTP/2 401 returned for "https://api.brevo.com/v3/smtp/email"."
#code: 401
#file: "/var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php"
#line: 170
-response: Symfony\Component\HttpClient\Response\CurlResponse {#439 …}
trace: {
/var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php:170 {
Symfony\Component\HttpClient\Response\CurlResponse->checkStatusCode(): void …
› if (400 <= $code) {
› throw new ClientException($this);
› }
}
/var/www/html/vendor/symfony/http-client/Response/TransportResponseTrait.php:131 {
Symfony\Component\HttpClient\Response\CurlResponse->doDestruct(): void …
› self::initialize($this);
› $this->checkStatusCode();
› }
}
/var/www/html/vendor/symfony/http-client/Response/CurlResponse.php:242 {
Symfony\Component\HttpClient\Response\CurlResponse->__destruct() …
›
› $this->doDestruct();
› } finally {
}
/var/www/html/vendor/symfony/http-client/Response/TraceableResponse.php:61 {
Symfony\Component\HttpClient\Response\TraceableResponse->__destruct() …
› if (method_exists($this->response, '__destruct')) {
› $this->response->__destruct();
› }
}
/var/www/html/vendor/symfony/http-client/TraceableHttpClient.php:66 {
Symfony\Component\HttpClient\TraceableHttpClient->request(string $method, string $url, array $options = []): ResponseInterface …
›
› return new TraceableResponse($this->client, $this->client->request($method, $url, $options), $content, $this->stopwatch?->start("$method $url", 'http_client'));
› }
}
/var/www/html/src/Service/BrevoMailer.php:31 {
App\Service\BrevoMailer->sendMail(Form $form): void …
›
› $this->httpClient->request(
› 'POST',
arguments: {
$method: "POST"
$url: "https://api.brevo.com/v3/smtp/email"
$options: [ …3]
}
}
/var/www/html/src/Controller/HomeController.php:48 {
App\Controller\HomeController->index(Request $request, BrevoMailer $brevoMailer): Response …
› if ($form->isSubmitted() && $form->isValid()) {
› $brevoMailer->sendMail($form);
› $this->addFlash('success', "Votre message a été envoyé avec succès !");
arguments: {
$form: Symfony\Component\Form\Form {#399 …}
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:178 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$brevoMailer: App\Service\BrevoMailer {#310 …}
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $response = $this->handleRaw($request, $type);
› } catch (\Throwable $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$type: 1
}
}
/var/www/html/vendor/symfony/http-kernel/Kernel.php:185 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$type: 1
$catch: true
}
}
/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
}
}
/var/www/html/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/var/www/html/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/var/www/html/vendor/autoload_runtime.php"
}
}
}
}
]
{
/var/www/html/vendor/symfony/http-client/Response/CommonResponseTrait.php:170 {
Symfony\Component\HttpClient\Response\CurlResponse->checkStatusCode(): void …
› if (400 <= $code) {
› throw new ClientException($this);
› }
}
/var/www/html/vendor/symfony/http-client/Response/TransportResponseTrait.php:131 {
Symfony\Component\HttpClient\Response\CurlResponse->doDestruct(): void …
› self::initialize($this);
› $this->checkStatusCode();
› }
}
/var/www/html/vendor/symfony/http-client/Response/CurlResponse.php:242 {
Symfony\Component\HttpClient\Response\CurlResponse->__destruct() …
›
› $this->doDestruct();
› } finally {
}
/var/www/html/vendor/symfony/http-client/Response/TraceableResponse.php:61 {
Symfony\Component\HttpClient\Response\TraceableResponse->__destruct() …
› if (method_exists($this->response, '__destruct')) {
› $this->response->__destruct();
› }
}
/var/www/html/vendor/symfony/http-client/TraceableHttpClient.php:66 {
Symfony\Component\HttpClient\TraceableHttpClient->request(string $method, string $url, array $options = []): ResponseInterface …
›
› return new TraceableResponse($this->client, $this->client->request($method, $url, $options), $content, $this->stopwatch?->start("$method $url", 'http_client'));
› }
}
/var/www/html/src/Service/BrevoMailer.php:31 {
App\Service\BrevoMailer->sendMail(Form $form): void …
›
› $this->httpClient->request(
› 'POST',
arguments: {
$method: "POST"
$url: "https://api.brevo.com/v3/smtp/email"
$options: [ …3]
}
}
/var/www/html/src/Controller/HomeController.php:48 {
App\Controller\HomeController->index(Request $request, BrevoMailer $brevoMailer): Response …
› if ($form->isSubmitted() && $form->isValid()) {
› $brevoMailer->sendMail($form);
› $this->addFlash('success', "Votre message a été envoyé avec succès !");
arguments: {
$form: Symfony\Component\Form\Form {#399 …}
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:178 {
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Request $request, int $type = self::MAIN_REQUEST): Response …
› // call controller
› $response = $controller(...$arguments);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$brevoMailer: App\Service\BrevoMailer {#310 …}
}
}
/var/www/html/vendor/symfony/http-kernel/HttpKernel.php:76 {
Symfony\Component\HttpKernel\HttpKernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $response = $this->handleRaw($request, $type);
› } catch (\Throwable $e) {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$type: 1
}
}
/var/www/html/vendor/symfony/http-kernel/Kernel.php:185 {
Symfony\Component\HttpKernel\Kernel->handle(Request $request, int $type = HttpKernelInterface::MAIN_REQUEST, bool $catch = true): Response …
› try {
› return $this->getHttpKernel()->handle($request, $type, $catch);
› } finally {
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
$type: 1
$catch: true
}
}
/var/www/html/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php:35 {
Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run(): int …
› {
› $response = $this->kernel->handle($this->request);
›
arguments: {
$request: Symfony\Component\HttpFoundation\Request {#2 …}
}
}
/var/www/html/vendor/autoload_runtime.php:29 {
require_once …
› ->getRunner($app)
› ->run()
› );
}
/var/www/html/public/index.php:5 {
›
› require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
›
arguments: {
"/var/www/html/vendor/autoload_runtime.php"
}
}
}