[bug-demo] $ couchapp push app.js http://robbinsd:********@localhost:5984/bug-demo
The "sys" module is now called "util". It should have a similar interface.
Preparing.
Serializing.
PUT http://robbinsd:******@localhost:5984/bug-demo/_design/hey-look-a-bug
Serializing.
PUT http://robbinsd:******@localhost:5984/bug-demo/_design/hey-look-a-bug
Finished push. 1-16e1fb55a407fdcd1e840bb2eeecd6bb
/Users/robbinsd/Repos/node.couchapp.js/main.js:152
if (resp.statusCode !== 201) throw new Error("Could not push document\n"
^
Error: Could not push document
{"error":"conflict","reason":"Document update conflict."}
at Request._callback (/Users/robbinsd/Repos/node.couchapp.js/main.js:152:42)
at Request.callback (/Users/robbinsd/Repos/node.couchapp.js/node_modules/request/main.js:104:22)
at Request.<anonymous> (/Users/robbinsd/Repos/node.couchapp.js/node_modules/request/main.js:458:18)
at Request.emit (events.js:67:17)
at IncomingMessage.<anonymous> (/Users/robbinsd/Repos/node.couchapp.js/node_modules/request/main.js:423:16)
at IncomingMessage.emit (events.js:88:20)
at HTTPParser.onMessageComplete (http.js:137:23)
at Socket.ondata (http.js:1125:24)
at TCP.onread (net.js:334:27)
Which can happen when you have one or more attachment directories, and one of them takes a while to load (e.g. lots of files in sub-directories). E.g.:
Fixes the following error:
Which can happen when you have one or more attachment directories, and one of them takes a while to load (e.g. lots of files in sub-directories). E.g.:
and