From 2f91485c4003ee791a97d6d55245ede94335ace3 Mon Sep 17 00:00:00 2001 From: Simon Leblanc Date: Thu, 20 Aug 2020 01:38:33 +0200 Subject: [PATCH] [Notifier] Fixed base_uri while call auth/time API --- .../Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php index 357fa59a32728..005d3de5822e2 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php @@ -88,7 +88,7 @@ protected function doSend(MessageInterface $message): void if (200 !== $response->getStatusCode()) { $error = $response->toArray(false); - throw new TransportException(sprintf('Unable to send the SMS: %s.', $error['message']), $response); + throw new TransportException(sprintf('Unable to send the SMS: "%s".', $error['message']), $response); } } @@ -97,7 +97,7 @@ protected function doSend(MessageInterface $message): void */ private function calculateTimeDelta(): int { - $endpoint = sprintf('%s/auth/time', $this->getEndpoint()); + $endpoint = sprintf('https://%s/1.0/auth/time', $this->getEndpoint()); $response = $this->client->request('GET', $endpoint); return $response->getContent() - time();