我在CoachBase lite
对Android
使用CouchDB
。今天(昨天很好)我无法在我的CouchDB和我的设备之间同步数据,但它只发生在我的设备上,其余的工作正常,我在Android
上收到了这个问题:
12-06 12:51:11.574 E / RemoteRequest:异常。网址: http://x.x.x.x:5984/DB/_session org.apache.http.conn.ConnectTimeoutException:连接到/x.x.x.x:5984 时间到 在org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:126) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:149) 在org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:169) 在org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:124) 在org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:365) 在org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:591) 在org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:512) 在org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:490) 在com.couchbase.lite.support.RemoteRequest.executeRequest(RemoteRequest.java:184) 在com.couchbase.lite.support.RemoteRequest.run(RemoteRequest.java:103) at java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:422) 在java.util.concurrent.FutureTask.run(FutureTask.java:237) at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.access $ 201(ScheduledThreadPoolExecutor.java:152) at java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:265) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) at java.util.concurrent.ThreadPoolExecutor $ Worker.run(ThreadPoolExecutor.java:587) 在java.lang.Thread.run(Thread.java:831)
如果我选择:
E / RemoteRequest:异常。网址:http://x.x.x.x:5984/DB/_session
我明白了:
{"错误":"未经授权","原因":"您无权访问 这个db。"}
我的用户json CouchDB
{
"_id": "40bbdbf8f260ce043622550c55b667a0",
"_rev": "20-28c1edf0fd20ec4a77bb76ac84a426c8",
"type": "user",
"id": 2309,
"username": "aprs",
"password": "xxxxxxxxxxx",
"name": "My mane",
"id_company": 9,
"id_technician": null,
"id_worker": null,
"version": "0x0000000025919D4C",
"ismaster": true
}
关于发生了什么的任何线索?