"Error loading events from calendar"

190 views
Skip to first unread message

Andrea Cervesato

unread,
Dec 29, 2016, 10:38:48 AM12/29/16
to AgenDAV general
Hello, I'm getting the error "Error loading events from calendar". The configuration are for a davical:

$app['site.title'] = 'My Calendar';
$app['site.logo'] = 'agendav_100transp.png';
$app['site.footer'] = 'AgenDAV ' . \AgenDAV\Version::V;
$app['proxies'] = [];
$app['db.options'] = [
$app['csrf.secret'] = 'averylongencryptionpassword';
$app['log.path'] = __DIR__.'/../var/log/';
$app['caldav.baseurl'] = 'https://caldav.mycaldav.cal/caldav.php';
$app['caldav.authmethod'] = 'basic';
$app['caldav.publicurls'] = false;
$app['caldav.baseurl.public'] = 'https://caldav.mycaldav.cal';
$app['principal.email.attribute'] = '{DAV:}email';
$app['calendar.sharing'] = false;
$app['calendar.sharing.permissions'] = [
$app['defaults.timezone'] = 'Europe/Rome';
$app['defaults.language'] = 'it';
$app['defaults.time_format'] = '24';
$app['defaults.date_format'] = 'dmy';
$app['defaults.weekstart'] = 1;
$app['defaults.show_week_nb'] = false;
$app['logout.redirection'] = '';


I cannot find any wrong configuration, actually I'm using thunderbird  osx ical and iOS calendar without problems.

Enabling the debug did not show any particular information

The only "error i get loading the page is something like that:
curl 'https://agenda.mycaldav.cal/events?calendar=%2Fcaldav.php%2Fandrea.cervesato%2540mypersonalmail.qq%2Fcalendar%2F&start=2016-11-28&end=2017-01-09&timezone=Europe%2FRome&_=1483025542892' -H 'Accept: application/json, text/javascript, */*; q=0.01' -H 'Accept-Encoding: gzip, deflate, br' -H 'Accept-Language: it-IT,it;q=0.8,en-US;q=0.5,en;q=0.3' -H 'Connection: keep-alive' -H 'Cookie: agendav_sess=dasadsasdadsdasdasdsadsadsa' -H 'Host: agenda.mycaldav.cal' -H 'Referer: https://agenda.mycaldav.cal/' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:50.0) Gecko/20100101 Firefox/50.0' -H 'X-Requested-With: XMLHttpRequest'

Any suggestion?

Enabling the debug did not show any error.

Jorge López Pérez

unread,
Jan 1, 2017, 4:36:24 AM1/1/17
to agendav...@googlegroups.com
Hi Andrea,

On Thu, Dec 29, 2016, at 16:38, Andrea Cervesato wrote:

> Enabling the debug did not show any particular information

Can you post your logs here? Make sure you also check your web server's
error log.

Best regards.

--
Jorge López Pérez
http://adobo.org

Fred

unread,
Jan 6, 2017, 11:13:09 AM1/6/17
to AgenDAV general
Hi,

I have excatly the same Problem. I'm running a sabre Server. With Thunderbird Lightning everything works fine.

AgenDAV is able to log in to the calendar. It's even possible to create new events, which are shown in Thunderbird, but not in AgenDAV. However there is this error

Interface error Error loading events from calendar /path_to_sabre/cal.php/calendars/fede/default/


The logfile shows the following error:

[2017-01-06 16:39:41] agendav.WARNING: Received unexpected HTTP code 500 (Server error: `REPORT https://mydomain.de/path_to_sabre/cal.php/calendars/fede/default/` resulted in a `500 Internal Server Error` response: <?xml version="1.0" encoding="utf-8"?> <d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns">   <s:sabredav-version>3 (truncated...) ) for input: Symfony\Component\HttpFoundation\ParameterBag::__set_state(array(    'parameters' =>    array (     'calendar' => '/path_to_sabre/cal.php/calendars/fede/default/',     'start' => '2016-12-26',     'end' => '2017-02-06',     'timezone' => 'Europe/Berlin',     '_' => '1483717174933',   ), )) [] []


The browser tries to load the events from this url:

https://agendav.mydomain.de/events?calendar=/path_to_sabre/cal.php/calendars/fede/default/&start=2016-12-26&end=2017-02-06&timezone=Europe/Berlin&_=1483718855819


The calendar itself is loaded by this url:

https://agendav.mydomain.de/calendars?_=1483718855818


It returns the expected JSON calendar object.


Any idea how to fix it? I tried already several hours to fix this issue.


Thanks in advance.


Kind regards


Frederik

Jorge López Pérez

unread,
Jan 13, 2017, 7:02:26 AM1/13/17
to agendav...@googlegroups.com
Hi Fred,

On Fri, Jan 6, 2017, at 17:13, 'Fred' via AgenDAV general wrote:

> I have excatly the same Problem. I'm running a sabre Server. With
> Thunderbird Lightning everything works fine.

I suspect this is related to this issue:
https://github.com/adobo/agendav/issues/191 .
Reply all
Reply to author
Forward
0 new messages