stackedit: Unable to post update to couchdb

I’m using a couchdb instance through couchappy to save documents, and have been getting the following error recently:

Error 403: Update time is in the future, please check your clock!

Console trace:

Call Line
Uncaught Error: Error 403: Update time is in the future, please check your clock! main.js:25982
u main.js:25982
(anonymous function) main.js:26014
ot.Callbacks.d main.js:1113
ot.Callbacks.p.fireWith main.js:1156
i main.js:2327
ot.ajaxTransport.ot.support.cors.e.crossDomain.send.n main.js:2485

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 18 (2 by maintainers)

Most upvoted comments

In the document: documents/_design/validate/validate_doc_update, uncomment those lines: if(newDoc.updated > Date.now() + 300000) { throw({forbidden: ‘Update time is in the future, please check your clock!’}); } and it should work. The clocks on smileupps servers seem to be out of sync. When I ran: curl -D- https://MY_INSTANCE.smileupps.com, the Date field in the header was about 9 minutes behind.