tej shah tej shah - 16 days ago 5
Android Question

CookieInterceptor: Failed to get cookie from server, response code {0}, cookie authentication will not be attempted again

facing error as unauthorized in cloudant.


E/CookieInterceptor: Failed to get cookie from server, response code {0}, cookie authentication will not be attempted again
11-24 19:24:12.149 27485-27787/com.sshs.simplifiedshs E/PullStrategy: Batch 0 ended with error:
CouchException: error: unauthorized, reason: _reader access is required for this request, statusCode: 401, msg: Unauthorized, cause: java.io.FileNotFoundException: https://*****_bulk_get
at com.cloudant.mazha.CouchClient$ExecuteResult.(CouchClient.java:139)
at com.cloudant.mazha.CouchClient$ExecuteResult.(CouchClient.java:89)
at com.cloudant.mazha.CouchClient.execute(CouchClient.java:193)
at com.cloudant.mazha.CouchClient.isBulkSupported(CouchClient.java:749)
at com.cloudant.sync.replication.CouchClientWrapper.isBulkSupported(CouchClientWrapper.java:280)
at com.cloudant.sync.replication.PullStrategy.run(PullStrategy.java:176)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.io.FileNotFoundException: https://*****_bulk_get
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:206)
at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:210)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:25)
at com.cloudant.http.HttpConnection.responseAsInputStream(HttpConnection.java:420)
at com.cloudant.mazha.CouchClient.execute(CouchClient.java:176)
at com.cloudant.mazha.CouchClient.isBulkSupported(CouchClient.java:749) 
at com.cloudant.sync.replication.CouchClientWrapper.isBulkSupported(CouchClientWrapper.java:280) 
at com.cloudant.sync.replication.PullStrategy.run(PullStrategy.java:176) 
at java.lang.Thread.run(Thread.java:818) 


event i change key and password but not solve problem. my app working prefect few hours ago but right not now able to access and facing error.

please please please help me and thank You in advance.

Answer

Sync-android (cloudant-sync-datastore) 1.1.3 had a bug in it related to cookie authentication, version 1.1.4 fixed this, see the change log for more information.