0
當我嘗試從我的數據庫中的數據,我得到以下錯誤:錯誤:文檔更新衝突
{"error":"conflict","reason":"Document update conflict."}
這是我的完整終端。當我在http://127.0.0.1:5984/spikademo
在我的瀏覽器中鍵入
Last login: Thu Feb 13 22:45:22 on ttys000
Idriss-iMac:~ idrisk$ cd Spika-Server
Idriss-iMac:Spika-Server idrisk$ cd install
Idriss-iMac:install idrisk$ curl -X POST http://127.0.0.1:5984/spikademo - [email protected] -H "Content-Type: application/json"
{"error":"conflict","reason":"Document update conflict."}
Idriss-iMac:install idrisk$
我的數據庫中創建一個我得到以下幾點:
{"db_name":"spikademo","doc_count":2,"doc_del_count":0,"update_seq":2,"purge_seq":0,"compact_running":false,"disk_size":8290,"data_size":2116,"instance_start_time":"1392349603181164","disk_format_version":6,"committed_update_seq":2}
如果您正在獲取數據,爲什麼使用POST? – TheDude
我應該使用GET嗎? @TheDude – user3308740