Open EarthlingDavey opened 2 years ago
I get an error message, not sure why its behind auth either.
{
"errors": [
{
"debugMessage": "get_object_vars(): Argument #1 ($object) must be of type object, array given",
"message": "Internal server error",
"extensions": {
"category": "internal"
},
"locations": [
{
"line": 11,
"column": 9
}
],
"path": [
"pages",
"edges",
0,
"node",
"blocks"
],
"trace": [
{
"file": ".../wp-content/plugins/wp-graphql-gutenberg-0.3.11/vendor/opis/json-schema/src/Validator.php",
"line": 1792,
"function": "get_object_vars(array(1))"
}
]
}
],
"extensions": {
"debug": []
}
}
The example code below requires Authentication. Expected behaviour is for them to be publicly accessible, the same as other blocks. If this behaviour is intentional, then I think it should be in the docs or have a descriptive error message.
Thanks for the plugin, and sorry I don't have the time to dive in and make a PR for a fix.