Hello,
I get regularly 404 errors. I know 404 is typcially a not found error. But
public void propfind(HttpPropfind.Mode mode) throws URISyntaxException, IOException, DavException, HttpException {
@Cleanup CloseableHttpResponse response = null;
// processMultiStatus() requires knowledge of the actual content location,
// so we have to handle redirections manually and create a new request for the new location
for (int i = context.getRequestConfig().getMaxRedirects(); i > 0; i--) {
HttpPropfind propfind = new HttpPropfind(location, mode);
response = httpClient.execute(propfind, context);
I can see in the debugger in the above code that location is
http://my_server_name/owncloud/remote.php/carddav/addressbooks/familie/kontakte/
I can call this URL on the Android device and after authentication I see the list of vCards in the browser. So it is not a network error.
protected static void checkResponse(StatusLine statusLine) throws HttpException {
int code = statusLine.getStatusCode();
Here code is a 404. I wonder what that could be, a “classical” 404 where the network resource is simply not reachable I would rule out since it works in the browser. It is all in my local LAN which works stable for all other usages.
Any idea in what direction I can debug this?
Thanks.