Skip to content

Instantly share code, notes, and snippets.

@pascaldevink
Created January 25, 2017 10:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pascaldevink/413fdd9d9436e138150ff14d6ae022ea to your computer and use it in GitHub Desktop.
Save pascaldevink/413fdd9d9436e138150ff14d6ae022ea to your computer and use it in GitHub Desktop.
overblog/graphql-bundle JSON exception stack trace
{
"error": {
"code": 500,
"message": "Internal Server Error",
"exception": [
{
"message": "Warning: mb_strlen() expects parameter 1 to be string, array given",
"class": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
"trace": [
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "",
"file": "\/vagrant\/vendor\/webonyx\/graphql-php\/src\/Language\/Source.php",
"line": 24,
"args": []
},
{
"namespace": "GraphQL\\Language",
"short_class": "Source",
"class": "GraphQL\\Language\\Source",
"type": "->",
"function": "__construct",
"file": "\/vagrant\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
"line": 41,
"args": [
[
"array",
{
"foo": [
"string",
"bar"
]
}
],
[
"string",
"GraphQL request"
]
]
},
{
"namespace": "GraphQL",
"short_class": "GraphQL",
"class": "GraphQL\\GraphQL",
"type": "::",
"function": "executeAndReturnResult",
"file": null,
"line": null,
"args": [
[
"object",
"GraphQL\\Schema"
],
[
"array",
{
"foo": [
"string",
"bar"
]
}
],
[
"array",
{
"request_files": [
"object",
"Symfony\\Component\\HttpFoundation\\FileBag"
]
}
],
[
"array",
{
"request_files": [
"object",
"Symfony\\Component\\HttpFoundation\\FileBag"
]
}
],
[
"null",
null
],
[
"null",
null
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func",
"file": "\/vagrant\/vendor\/overblog\/graphql-bundle\/Request\/Executor.php",
"line": 150,
"args": [
[
"array",
[
[
"string",
"GraphQL\\GraphQL"
],
[
"string",
"executeAndReturnResult"
]
]
],
[
"object",
"GraphQL\\Schema"
],
[
"array",
{
"foo": [
"string",
"bar"
]
}
],
[
"array",
{
"request_files": [
"object",
"Symfony\\Component\\HttpFoundation\\FileBag"
]
}
],
[
"array",
{
"request_files": [
"object",
"Symfony\\Component\\HttpFoundation\\FileBag"
]
}
],
[
"null",
null
],
[
"null",
null
]
]
},
{
"namespace": "Overblog\\GraphQLBundle\\Request",
"short_class": "Executor",
"class": "Overblog\\GraphQLBundle\\Request\\Executor",
"type": "->",
"function": "execute",
"file": "\/vagrant\/vendor\/overblog\/graphql-bundle\/Controller\/GraphController.php",
"line": 57,
"args": [
[
"array",
{
"query": [
"array",
{
"foo": [
"string",
"bar"
]
}
],
"variables": [
"null",
null
],
"operationName": [
"null",
null
]
}
],
[
"array",
{
"request_files": [
"object",
"Symfony\\Component\\HttpFoundation\\FileBag"
]
}
],
[
"null",
null
]
]
},
{
"namespace": "Overblog\\GraphQLBundle\\Controller",
"short_class": "GraphController",
"class": "Overblog\\GraphQLBundle\\Controller\\GraphController",
"type": "->",
"function": "processNormalQuery",
"file": "\/vagrant\/vendor\/overblog\/graphql-bundle\/Controller\/GraphController.php",
"line": 22,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"null",
null
]
]
},
{
"namespace": "Overblog\\GraphQLBundle\\Controller",
"short_class": "GraphController",
"class": "Overblog\\GraphQLBundle\\Controller\\GraphController",
"type": "->",
"function": "endpointAction",
"file": null,
"line": null,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"null",
null
]
]
},
{
"namespace": "",
"short_class": "",
"class": "",
"type": "",
"function": "call_user_func_array",
"file": "\/vagrant\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php",
"line": 153,
"args": [
[
"array",
[
[
"object",
"Overblog\\GraphQLBundle\\Controller\\GraphController"
],
[
"string",
"endpointAction"
]
]
],
[
"array",
[
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"null",
null
]
]
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handleRaw",
"file": "\/vagrant\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/HttpKernel.php",
"line": 68,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "HttpKernel",
"class": "Symfony\\Component\\HttpKernel\\HttpKernel",
"type": "->",
"function": "handle",
"file": "\/vagrant\/vendor\/symfony\/symfony\/src\/Symfony\/Component\/HttpKernel\/Kernel.php",
"line": 168,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
],
[
"integer",
1
],
[
"boolean",
true
]
]
},
{
"namespace": "Symfony\\Component\\HttpKernel",
"short_class": "Kernel",
"class": "Symfony\\Component\\HttpKernel\\Kernel",
"type": "->",
"function": "handle",
"file": "\/vagrant\/web\/app_dev.php",
"line": 17,
"args": [
[
"object",
"Symfony\\Component\\HttpFoundation\\Request"
]
]
}
]
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment