You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$logger->error('Failed to download release file after ' . $maxAttempts . ' attempts', [
267
+
'url' => $url,
268
+
'error' => $errorMsg,
269
+
]);
270
+
thrownew \Exception(gettext('Failed to download the release file from GitHub after multiple attempts. Please check your server\'s internet connection and try again.') . ' Error: ' . $errorMsg);
271
+
}
272
+
273
+
// Check if downloaded content is empty
274
+
$downloadSize = strlen($downloadContent);
275
+
if ($downloadSize === 0) {
276
+
$logger->error('Downloaded release file is empty after ' . $maxAttempts . ' attempts', [
277
+
'url' => $url,
278
+
'size' => 0,
279
+
]);
280
+
thrownew \Exception(gettext('Downloaded release file is empty. This may be due to network issues or GitHub rate limiting. Please try again later.'));
281
+
}
282
+
283
+
// Minimum expected size for a ChurchCRM release ZIP (at least 1MB)
284
+
$minExpectedSize = 1024 * 1024;
285
+
if ($downloadSize < $minExpectedSize) {
286
+
$logger->warning('Downloaded file is smaller than expected', [
0 commit comments