Unexpected status or error status BEGIN:VCALENDAR



  • When I try to add my office online calendar feed I am getting a status error telling and returning the first line of the feed (BEGIN:VCALENDAR).

    A snippet of my feed:

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//My calendar product//ical.domain.com//
    BEGIN:VEVENT
    SUMMARY:VC:Plan van aanpak vertrouwelijke mails 
    DTSTART;VALUE=DATE-TIME:20160615T110000
    DTEND;VALUE=DATE-TIME:20160615T113000
    LOCATION:ELBE.G143
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Drupal ombuds briefing
    DTSTART;VALUE=DATE-TIME:20160615T113000
    DTEND;VALUE=DATE-TIME:20160615T120000
    LOCATION:ELBE.G075
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Team Meeting 
    DTSTART;VALUE=DATE-TIME:20160615T130000
    DTEND;VALUE=DATE-TIME:20160615T140000
    LOCATION:ELBE.G075
    END:VEVENT


  • Are you sure this is what your calendar data looks like ? This snippet seems not helpful at all.

    Your VCALENDAR misses an END:VCALENDAR, your EVENT misses an UID: and DTSTAMP: ... (see: RFC5545 )



  • @kralo
    The snippet I provided was not complete.
    This is the full result I am getting into my browser (chrome) once I fill in the credentials.

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//My calendar product//ical.colruytgroup.com//
    BEGIN:VEVENT
    SUMMARY:Later in
    DTSTART;VALUE=DATE-TIME:20160613T083000
    DTEND;VALUE=DATE-TIME:20160613T100000
    LOCATION:ext
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:VC:Plan van aanpak vertrouwelijke mails DATS24
    DTSTART;VALUE=DATE-TIME:20160615T110000
    DTEND;VALUE=DATE-TIME:20160615T113000
    LOCATION:ELBE.G143
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Drupal ombuds briefing
    DTSTART;VALUE=DATE-TIME:20160615T113000
    DTEND;VALUE=DATE-TIME:20160615T120000
    LOCATION:ELBE.G075
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Team Meeting colruyt.be
    DTSTART;VALUE=DATE-TIME:20160615T130000
    DTEND;VALUE=DATE-TIME:20160615T140000
    LOCATION:ELBE.G075
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:VC :Drupal briefing
    DTSTART;VALUE=DATE-TIME:20160621T140000
    DTEND;VALUE=DATE-TIME:20160621T150000
    LOCATION:ELBE.5.G795
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Team Meeting colruyt.be
    DTSTART;VALUE=DATE-TIME:20160624T110000
    DTEND;VALUE=DATE-TIME:20160624T120000
    LOCATION:ELBE.5.G795
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Drupal ombuds briefing
    DTSTART;VALUE=DATE-TIME:20160628T143000
    DTEND;VALUE=DATE-TIME:20160628T150000
    LOCATION:ELBE.5.G795
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:VC :Drupal briefing
    DTSTART;VALUE=DATE-TIME:20160630T100000
    DTEND;VALUE=DATE-TIME:20160630T110000
    LOCATION:ELBE.5.G795
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Teammeeting
    DTSTART;VALUE=DATE-TIME:20160630T110000
    DTEND;VALUE=DATE-TIME:20160630T120000
    LOCATION:ELBE.G025
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:CARA meeting E-factory (1m)
    DTSTART;VALUE=DATE-TIME:20160630T160000
    DTEND;VALUE=DATE-TIME:20160630T170000
    LOCATION:Kantine Elbe
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Team Meeting colruyt.be
    DTSTART;VALUE=DATE-TIME:20160701T130000
    DTEND;VALUE=DATE-TIME:20160701T140000
    LOCATION:ELBE.5.G795
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Verplaatsing
    DTSTART;VALUE=DATE-TIME:20160705T120000
    DTEND;VALUE=DATE-TIME:20160705T121500
    LOCATION:Extb
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:proefsessie hellebroek (do not replace)
    DTSTART;VALUE=DATE-TIME:20160705T121500
    DTEND;VALUE=DATE-TIME:20160705T124500
    LOCATION:HELK.1.2007
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Verplaatsing
    DTSTART;VALUE=DATE-TIME:20160705T124500
    DTEND;VALUE=DATE-TIME:20160705T130000
    LOCATION:Extb
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Team Meeting colruyt.be
    DTSTART;VALUE=DATE-TIME:20160707T110000
    DTEND;VALUE=DATE-TIME:20160707T120000
    LOCATION:ELBE.G075
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Keep free
    DTSTART;VALUE=DATE-TIME:20160707T120000
    DTEND;VALUE=DATE-TIME:20160707T180000
    LOCATION:ext
    END:VEVENT
    BEGIN:VEVENT
    SUMMARY:Drupal ombuds briefing
    DTSTART;VALUE=DATE-TIME:20160712T143000
    DTEND;VALUE=DATE-TIME:20160712T150000
    LOCATION:ELBE.G075
    END:VEVENT
    END:VCALENDAR
    

    UID and DTSTAMP are like you say missing. Is it because of that that the import doesn't succeed?



  • UID and DTSTAMP are like you say missing. Is it because of that that the import doesn't succeed?

    Not necessarily. Although your calendar is formally invalid, icsdroid does import the text you have posted on my device without problems.

    So my next guess would be the server HTTP status code. Is it correctly returning 200 OK if you verify in Chrome (Developer Tools - Networking? )



  • @kralo

    Yes status is 200

    Request URL:https://ical.colruytgroup.com/calendar
    Request Method:GET
    Status Code:200 OK
    Remote Address:91.231.109.191:443
    Request Headers
    
    Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
    Accept-Encoding:gzip, deflate, sdch, br
    Accept-Language:fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,nl;q=0.2
    Authorization:Basic bXN0djI5NzowNW1hc3lraQ==
    Connection:keep-alive
    Host:ical.colruytgroup.com
    Upgrade-Insecure-Requests:1
    User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
    Name
    Path
    calendar

  • developer

    Please enclose code or similar blocks with ```.

    Can you provide steps to reproduce, including an URL/credentials where we can reproduce the problem?



  • @rfc2822,

    Thanks for your tip about the code.

    I can provide you the URL and the credentials but not here. It has to be handled as confidential.
    Can I give you these in a private message?

    Thanks, regards,
    Michel.


  • developer

    @MS-Informatique Yes, you can send it as private message or email to play@bitfire.at (OpenPGP key on the bottom of icsdroid.bitfire.at).


  • developer

    Hello,

    Thanks for the credentials. The server doesn't like requests sent using curl: In this case, the server responds with The requested URL was rejected. Please consult with your administrator. Your support ID is: 14255903059298974973. However, that's not your problem.

    It seems like the server doesn't send a correct HTTP response. There's no status line, but only the message body:

    > GET /calendar HTTP/1.1
    > Host: …
    > Authorization: Basic …
    > Accept: */*
    > User-Agent: ICSdroid
    BEGIN:VCALENDAR
    …
    

    This causes clients to interpret the first body line as the status line, thus the error message "Unexpected status: BEGIN:VCALENDAR" (BEGIN:VCALENDAR is the first line of the body).

    So, this is a severe server error: the server doesn't speak HTTP.

    There's probably some kind of script at this URL and printing the HTTP status line has been forgotten in this script. Please contact your server admin with reference to this forum thread.



  • @rfc2822

    Thanks for your reply. Now the problem is clear.
    I will handle this with the server admin.

    Have a nice day!

    Best regards,
    Michel.


  • developer

    @MS-Informatique I hope that it helps. If the problem could be solved that way, it would be nice if you could confirm it here so that I know whether my guess was correct.


Log in to reply
 

Looks like your connection to Bitfire App Forums was lost, please wait while we try to reconnect.