Skip to content

TypeError: object supporting the buffer API required with BufferedReader requests #15

Open
@m9aertner

Description

@m9aertner

Very similar to Issue 10, we are seeing an issue when POSTing some piped content, e.g. via here file:

http -A aws4 POST $AWS_ES_URL/some_index/doc/TEST:1 <<<'{"SOME":"text"}'
...
http: error: TypeError: object supporting the buffer API required

In this case, the body appears to be a BufferedReader, with BufferedIOBase superclass defining the read() method.
Materializing the reader using read() works around that problem, at the cost of loading the body into memory.

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