Graphene Django “Must provide query string”

后端 未结 7 816
醉酒成梦
醉酒成梦 2021-01-12 06:52

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

7条回答
  •  时光取名叫无心
    2021-01-12 07:33

    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.

提交回复
热议问题