You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~> curl -X POST --header "Content-Type:application/graphql" -d '{"query":"{content(id:\"13381672\"){title,id}}"}' http://127.0.0.1:8000/graphql
{"statusCode":415,"error":"Unsupported Media Type"}
I have set up an options mime configuration as per the below, passing options into the server instantiation, but I am still seeing the "Unsupported Media Type" error.
The below works for me: curl -X POST -H "Content-Type: application/json" -d '{"query":"{person(firstname:\"billy\"){lastname}}"}' http://127.0.0.1:8000/graphql
Checkout blow file for an example: https://github.com/zoe-1/graphi/blob/master/example.js
I am working on a graphql + relay app served on top of hapi and have ported your code to my application.
Here you can see me sending POST requests to the graphql endpoint.
I have set up an options mime configuration as per the below, passing options into the server instantiation, but I am still seeing the
"Unsupported Media Type"
error.I don't see any mime configuration here. Is that an oversight, or am I missing something else?
The text was updated successfully, but these errors were encountered: