I have setup a Graphene server using Django. When I run my queries through GraphiQL (the web client), everything works fine. However, when I run from anywhere else, I get th
This error is raised when parse_body
is unable to parse the incoming data. I'd start there by looking at the data passed into this method and ensuring it's of the correct type.
For example, the multipart/form-data
section naively returns request.POST
, which may need to be overwritten to handle, for example, the request that apollo-upload-client
sends for file upload handling.
In our case we created a view to both require a login and to support the apollo-upload-client
use case and it works fine.