Recently, with DAVx (v3.3-gplay), each time i tried to synchronize with my calendar app “agenda business”, i had the following error :
“Server error HTTP 500”.
In the detailed error log i found :
“this recurrence rule does not generate any valid instances” (wich bring me here).
I tried the rfc2822’s solution (remove the “90 day” limit in the DAVx’s parameter, synchronize and put it again the “90 day” limit) and it worked : no more error !
[webcal.fi] Unexpected Status Line: HTTP/1.1 200 OK or 304 Not Modified
I’ve been using ICSDroid for some weeks, recently I’m seeing sometimes synchronisation errors like “Unexpected Status Line: HTTP/1.1 200 OK” or “Unexpected Status Line: HTTP/1.1 304 Not Modified”. Strange enough the error messages contain a “�” (U+FFFD, REPLACEMENT CHARACTER) at the start of the Status Line.
IMHO these status lines are fine and should not raise an error, should they?
I’m running ICSDroid 1.2 on Android 5.1.1 (CyanogenMod)
If there’s a replacement character at the start, they’re not OK and can’t be parsed Android’s HttpsURLConnection which is used by ICSdroid.
Are you sure that this is not a server problem, i.e. the status lines are really correct? Can you open the Webcal URL with a browser or
Can you provide an .ics URL so that we can reproduce the problem?
I’m using the same URL in Thunderbird (Lightning) without any issues for quite some time, and my first try was opening the URL with a browser and also wget, which works fine.
One of the .ics URLs in question:
This URL works here… is the problem reproducible?
“Sometimes errors” doesn’t sound good… And also, the browser/wget/curl validation isn’t applicable then, because you’d most probably get the version which occurs most times and works.
I agree - “sometimes” doesn’t sound good, it even isn’t good! The issue is reproducible, unfortunately not at will, but it has hit me several times during the last days. I’ve already tried to pinpoint the issue by using different WLANs, VPN, different time of day,… but this doesn’t seem to have any influence. It seems to boil down to somewhere between the server providing the .ics and ICSDroid. Even getting different calendars from the same server at (almost) the same time yields in different behaviour (see screenshot)
Let me know if I can provide further details (log files?) to help to solve this issue.
I have added the calendar and will see if this occurs on my own device.
Otherwise, my guess is that the server sometimes sends an invalid status line, as said by the error message.
Any news on that issue?
I did some research, could this be a related issue:
Unexpected status line exception using HttpUrlConnection in android?
“java.net.ProtocolException: Unexpected status line: ��”
To be honest, I don’t know what to do in this case.
To see what’s wrong, we’d need to capture the traffic and see whether the response (status line) is incorrect or whether the Android HTTP client has a bug.
It’s the same problem as you have linked. I will try
Seems like it’s really an Android
Connection: closedoes the trick.
@webdb22 Can you please check again with ICSdroid 1.2.1?
Seems to be solved. Thanks @webdb22!