TransforMap / data.transformap.co

Here you find a Node.js daemon to serve the public TransforMap web service.
https://data.transformap.co
GNU Affero General Public License v3.0
7 stars 2 forks source link

CouchDB Document update conflict #15

Closed species closed 8 years ago

species commented 8 years ago

When changing the design documents (changing the view from one index to another), after restarting the API with npm start, it displays the following error:

****** Document update conflict. ******
{ method: 'POST',
  headers:
   { 'content-type': 'application/json',
     accept: 'application/json' },
  uri: 'http://XXXXXX:XXXXXX@localhost:5984/poi',
  body: '{"_id":"_design/poi","language":"javascript","views":{"byId":{"map":"function(doc) {\\n  if (doc.type === \'journal\') {\\n    emit(doc._id, null )\\n  }\\n}"},"currentVersionById":{"map":"function(doc) {\\n  if (doc.type === \'journal\') {\\n    emit(doc._id, {\'_id\': doc.current._id})\\n  }\\n}"}},"rev":"1-0aea48eba69312de6c6d5e5743d2b344"}' }