Skip to content

Post to /api/records/{idv}/draft doesn't work on larger records #3357

@tmorrell

Description

@tmorrell

Package version (if known): v13

Describe the bug

The post endpoint /api/records/{idv}/draft fails when the user submits a record the beyond 126920 bytes and shifts to a chunk encoding. The response doesn't appear to be able to produce the chunks. The put and get endpoints don't exhibit this issue.

Steps to Reproduce

  1. Create a large record (e.g. lots of creators)
  2. Post the record to /api/records/{idv}/draft
  3. In modern requests versions you'll get urllib3.exceptions.IncompleteRead: IncompleteRead and requests.exceptions.ChunkedEncodingError

Expected behavior

The post endpoint should work the same as the put endpoint

Screenshots (if applicable)

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions