Leantime/leantime · error · \Exception
Error loading iCal feed: '.$e->getMessage()
Error message
Error loading iCal feed: '.$e->getMessage()
What it means
Error "Error loading iCal feed: '.$e->getMessage()" thrown in Leantime/leantime.
Source
Thrown at app/Domain/Calendar/Services/Calendar.php:886
$client = new \GuzzleHttp\Client;
try {
$response = $client->get($url, [
'allow_redirects' => OutboundUrlGuard::redirectOptions(),
'headers' => [
'Accept' => 'text/calendar',
'User-Agent' => 'Leantime Calendar Integration v'.$this->config->appVersion,
],
]);
if ($response->getStatusCode() == 200) {
return (string) $response->getBody();
}
throw new \Exception('Failed to load iCal feed: HTTP '.$response->getStatusCode());
} catch (\Exception $e) {
throw new \Exception('Error loading iCal feed: '.$e->getMessage());
}
}
public function generateIcalHash()
{
if (empty(session('userdata.id'))) {
throw new \Exception('Session id is not set.');
}
$uuid = Uuid::uuid4();
$icalHash = $uuid->toString();
$this->settingsRepo->saveSetting('usersettings.'.session('userdata.id').'.icalSecret', $icalHash);
}
/**View on GitHub (pinned to 9a9f49f100)
When it happens
Trigger: Thrown at app/Domain/Calendar/Services/Calendar.php:886 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Leantime/leantime@9a9f49f100 (2026-08-21).
Data as JSON: /api/errors/688bf483bbb5e29f.
Report an issue: GitHub.