Skip to content

Request body consumed multiple times with juniper_warp #844

Open
@crocme10

Description

@crocme10

Hello,

I've updated a server I had running, with more recent versions of juniper and juniper_warp. I ran into an error, which I have been able to reproduce in the following minimal test case:

Running the starwars example found in the juniper_warp folder, and running a simple hero query against the interface will result in an error Request body consumed multiple times.

I've created a repo which contains the example from juniper_warp, as well as the fixtures so that the example is self-contained. You should just do the following:

git clone https://github.com/crocme10/test-juniper
cd test-juniper
cargo build --release
RUST_LOG=debug ./target/release/test-juniper&
curl -X POST "http://localhost:8080/graphql" -H 'Content-Type: application/json' --data-binary @payload.json
Request body consumed multiple times⏎ 

I would not expect any error.

This occur on a Linux machine, with rust 1.48

Thank you for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions