Skip to content

Commit

Permalink
Improve message of error 1103
Browse files Browse the repository at this point in the history
  • Loading branch information
adams85 committed Feb 8, 2024
1 parent 6a9bcad commit 7a313f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ConfigFetcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a313f9

Please sign in to comment.