mikeal / node.couchapp.js

Utility for writing couchapps.
Apache License 2.0
406 stars 78 forks source link

couchapp push fails since request 2.41.0 #101

Open cgreenhalgh opened 9 years ago

cgreenhalgh commented 9 years ago

couchapp 0.11.0 push fails on the second PUT; couchdb reports an 400 invalid_json. This appears to be due to request 2.41.0+ mutating the headers object that is passed into each PUT request (specifically content-length is added). As the second request length is usually different to the first couchdb sees a truncated JSON object in the request body. See request issue 1060

xp-lol-er commented 9 years ago

Yes, i was struggling with this for the last days, I finally fixed it by having an explicit dependency on requrest@2.40.0.