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();