graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Getting Error :"Must Provide Query String"

Open opiuman opened this issue 8 years ago • 3 comments

A simple query request is working via the "GraphQL Playground" against our GraphQL server. However, it's getting error "Must Provide Query String" while using your package to make the request.

Not sure if that's because of the ContentType (multipart/form-data vs application/json). That's definitely a blocker.

opiuman avatar Jan 05 '18 07:01 opiuman

Can you shed some light on to what your server expects?

matryer avatar Mar 07 '18 08:03 matryer

Header content type for sure, try example like this:

echo '{ hello }' | http POST localhost:4000/graphql 'Content-Type:application/graphql'

ghost avatar Apr 11 '18 07:04 ghost

Please update and try again following https://github.com/machinebox/graphql/pull/15.

matryer avatar May 24 '18 14:05 matryer