From 7a313f9c12a6e7494726cd43b855c59100ce92c7 Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Thu, 8 Feb 2024 22:37:15 +0100 Subject: [PATCH] Improve message of error 1103 --- src/ConfigFetcher.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ConfigFetcher.php b/src/ConfigFetcher.php index 2cdddd0..e54f548 100644 --- a/src/ConfigFetcher.php +++ b/src/ConfigFetcher.php @@ -187,7 +187,9 @@ private function sendConfigFetchRequest(?string $etag, string $url): FetchRespon return FetchResponse::failure(InternalLogger::format($message, $messageCtx)); } catch (ClientExceptionInterface $exception) { - $message = 'Unexpected error occurred while trying to fetch config JSON.'; + $message = 'Unexpected error occurred while trying to fetch config JSON. '. + 'It is most likely due to a local network issue. '. + 'Please make sure your application can reach the ConfigCat CDN servers (or your proxy server) over HTTP.'; $messageCtx = ['event_id' => 1103, 'exception' => $exception]; $this->logger->error($message, $messageCtx);