Skip to content

couchapp push fails since request 2.41.0 #101

@cgreenhalgh

Description

@cgreenhalgh

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions