kreta / Kreta

Modern project management solution
https://kreta.io
MIT License
182 stars 15 forks source link

Cannot create new project #312

Closed gorkalaucirica closed 7 years ago

gorkalaucirica commented 7 years ago

I get this error:

{
    "error": {
        "code": 500,
        "message": "Internal Server Error",
        "exception": [{
            "message": "Notice: Undefined index: id",
            "class": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
            "trace": [{
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "",
                "file": "\/var\/www\/taskmanager\/src\/Kreta\/TaskManager\/Infrastructure\/Symfony\/GraphQl\/Mutation\/Project\/CreateProjectMutation.php",
                "line": 80,
                "args": []
            }, {
                "namespace": "Kreta\\TaskManager\\Infrastructure\\Symfony\\GraphQl\\Mutation\\Project",
                "short_class": "CreateProjectMutation",
                "class": "Kreta\\TaskManager\\Infrastructure\\Symfony\\GraphQl\\Mutation\\Project\\CreateProjectMutation",
                "type": "->",
                "function": "execute",
                "file": null,
                "line": null,
                "args": [
                    ["array", {
                        "name": ["string", "Probando"],
                        "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                        "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                    }]
                ]
            }, {
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "call_user_func_array",
                "file": "\/var\/www\/taskmanager\/vendor\/overblog\/graphql-bundle\/Resolver\/AbstractProxyResolver.php",
                "line": 47,
                "args": [
                    ["array", [
                        ["object", "Kreta\\TaskManager\\Infrastructure\\Symfony\\GraphQl\\Mutation\\Project\\CreateProjectMutation"],
                        ["string", "execute"]
                    ]],
                    ["array", [
                        ["array", {
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                        }]
                    ]]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\Resolver",
                "short_class": "AbstractProxyResolver",
                "class": "Overblog\\GraphQLBundle\\Resolver\\AbstractProxyResolver",
                "type": "->",
                "function": "resolve",
                "file": "\/var\/www\/taskmanager\/var\/cache\/dev\/overblog\/graph-bundle\/__definitions__\/MutationType.php",
                "line": 84,
                "args": [
                    ["array", [
                        ["string", "create_project"],
                        ["array", [
                            ["array", {
                                "name": ["string", "Probando"],
                                "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                                "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                            }]
                        ]]
                    ]]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\__DEFINITIONS__",
                "short_class": "MutationType",
                "class": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\MutationType",
                "type": "->",
                "function": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\{closure}",
                "file": "\/var\/www\/taskmanager\/vendor\/overblog\/graphql-bundle\/Relay\/Mutation\/MutationFieldResolver.php",
                "line": 23,
                "args": [
                    ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\Relay\\Mutation",
                "short_class": "MutationFieldResolver",
                "class": "Overblog\\GraphQLBundle\\Relay\\Mutation\\MutationFieldResolver",
                "type": "->",
                "function": "resolve",
                "file": null,
                "line": null,
                "args": [
                    ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"],
                    ["object", "Closure"]
                ]
            }, {
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "call_user_func_array",
                "file": "\/var\/www\/taskmanager\/vendor\/overblog\/graphql-bundle\/Resolver\/AbstractProxyResolver.php",
                "line": 47,
                "args": [
                    ["array", [
                        ["object", "Overblog\\GraphQLBundle\\Relay\\Mutation\\MutationFieldResolver"],
                        ["string", "resolve"]
                    ]],
                    ["array", [
                        ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"],
                        ["object", "Closure"]
                    ]]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\Resolver",
                "short_class": "AbstractProxyResolver",
                "class": "Overblog\\GraphQLBundle\\Resolver\\AbstractProxyResolver",
                "type": "->",
                "function": "resolve",
                "file": "\/var\/www\/taskmanager\/var\/cache\/dev\/overblog\/graph-bundle\/__definitions__\/MutationType.php",
                "line": 84,
                "args": [
                    ["array", [
                        ["string", "relay_mutation_field"],
                        ["array", [
                            ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"],
                            ["object", "Closure"]
                        ]]
                    ]]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\__DEFINITIONS__",
                "short_class": "MutationType",
                "class": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\MutationType",
                "type": "->",
                "function": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\{closure}",
                "file": null,
                "line": null,
                "args": [
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "GraphQL\\Type\\Definition\\ResolveInfo"]
                ]
            }, {
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "call_user_func_array",
                "file": "\/var\/www\/taskmanager\/var\/cache\/dev\/overblog\/graph-bundle\/__definitions__\/MutationType.php",
                "line": 86,
                "args": [
                    ["object", "Closure"],
                    ["array", [
                        ["array", {
                            "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                        }],
                        ["object", "Overblog\\GraphQLBundle\\Definition\\Argument"],
                        ["array", {
                            "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                        }],
                        ["object", "GraphQL\\Type\\Definition\\ResolveInfo"]
                    ]]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\__DEFINITIONS__",
                "short_class": "MutationType",
                "class": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\MutationType",
                "type": "->",
                "function": "Overblog\\GraphQLBundle\\__DEFINITIONS__\\{closure}",
                "file": null,
                "line": null,
                "args": [
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input": ["array", {
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                        }]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "GraphQL\\Type\\Definition\\ResolveInfo"]
                ]
            }, {
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "call_user_func",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
                "line": 460,
                "args": [
                    ["object", "Closure"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input": ["array", {
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                        }]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "GraphQL\\Type\\Definition\\ResolveInfo"]
                ]
            }, {
                "namespace": "GraphQL\\Executor",
                "short_class": "Executor",
                "class": "GraphQL\\Executor\\Executor",
                "type": "::",
                "function": "resolveOrError",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
                "line": 442,
                "args": [
                    ["object", "Closure"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input": ["array", {
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"],
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"]
                        }]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "GraphQL\\Type\\Definition\\ResolveInfo"]
                ]
            }, {
                "namespace": "GraphQL\\Executor",
                "short_class": "Executor",
                "class": "GraphQL\\Executor\\Executor",
                "type": "::",
                "function": "resolveField",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
                "line": 224,
                "args": [
                    ["object", "GraphQL\\Executor\\ExecutionContext"],
                    ["object", "Overblog\\GraphQLBundle\\__DEFINITIONS__\\MutationType"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "ArrayObject"]
                ]
            }, {
                "namespace": "GraphQL\\Executor",
                "short_class": "Executor",
                "class": "GraphQL\\Executor\\Executor",
                "type": "::",
                "function": "executeFieldsSerially",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
                "line": 170,
                "args": [
                    ["object", "GraphQL\\Executor\\ExecutionContext"],
                    ["object", "Overblog\\GraphQLBundle\\__DEFINITIONS__\\MutationType"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["object", "ArrayObject"]
                ]
            }, {
                "namespace": "GraphQL\\Executor",
                "short_class": "Executor",
                "class": "GraphQL\\Executor\\Executor",
                "type": "::",
                "function": "executeOperation",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/Executor\/Executor.php",
                "line": 93,
                "args": [
                    ["object", "GraphQL\\Executor\\ExecutionContext"],
                    ["object", "GraphQL\\Language\\AST\\OperationDefinition"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }]
                ]
            }, {
                "namespace": "GraphQL\\Executor",
                "short_class": "Executor",
                "class": "GraphQL\\Executor\\Executor",
                "type": "::",
                "function": "execute",
                "file": "\/var\/www\/taskmanager\/vendor\/webonyx\/graphql-php\/src\/GraphQL.php",
                "line": 54,
                "args": [
                    ["object", "GraphQL\\Schema"],
                    ["object", "GraphQL\\Language\\AST\\Document"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input_0": ["array", {
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"],
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"]
                        }]
                    }],
                    ["null", null]
                ]
            }, {
                "namespace": "GraphQL",
                "short_class": "GraphQL",
                "class": "GraphQL\\GraphQL",
                "type": "::",
                "function": "executeAndReturnResult",
                "file": null,
                "line": null,
                "args": [
                    ["object", "GraphQL\\Schema"],
                    ["string", "mutation CreateProjectMutationRequest($input_0:CreateProjectInput!) {\n  createProject(input:$input_0) {\n    project {\n      id,\n      name,\n      slug,\n      organization {\n        id,\n        name,\n        slug\n      }\n    },\n    clientMutationId\n  }\n}"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input_0": ["array", {
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"],
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"]
                        }]
                    }],
                    ["null", null]
                ]
            }, {
                "namespace": "",
                "short_class": "",
                "class": "",
                "type": "",
                "function": "call_user_func",
                "file": "\/var\/www\/taskmanager\/vendor\/overblog\/graphql-bundle\/Request\/Executor.php",
                "line": 152,
                "args": [
                    ["array", [
                        ["string", "GraphQL\\GraphQL"],
                        ["string", "executeAndReturnResult"]
                    ]],
                    ["object", "GraphQL\\Schema"],
                    ["string", "mutation CreateProjectMutationRequest($input_0:CreateProjectInput!) {\n  createProject(input:$input_0) {\n    project {\n      id,\n      name,\n      slug,\n      organization {\n        id,\n        name,\n        slug\n      }\n    },\n    clientMutationId\n  }\n}"],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "request_files": ["object", "Symfony\\Component\\HttpFoundation\\FileBag"]
                    }],
                    ["array", {
                        "input_0": ["array", {
                            "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"],
                            "name": ["string", "Probando"],
                            "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"]
                        }]
                    }],
                    ["null", null]
                ]
            }, {
                "namespace": "Overblog\\GraphQLBundle\\Request",
                "short_class": "Executor",
                "class": "Overblog\\GraphQLBundle\\Request\\Executor",
                "type": "->",
                "function": "execute",
                "file": "\/var\/www\/taskmanager\/vendor\/overblog\/graphql-bundle\/Controller\/GraphController.php",
                "line": 57,
                "args": [
                    ["array", {
                        "query": ["string", "mutation CreateProjectMutationRequest($input_0:CreateProjectInput!) {\n  createProject(input:$input_0) {\n    project {\n      id,\n      name,\n      slug,\n      organization {\n        id,\n        name,\n        slug\n      }\n    },\n    clientMutationId\n  }\n}"],
                        "variables": ["array", {
                            "input_0": ["array", {
                                "clientMutationId": ["string", "0.ascafxd8wri4eoblxswvlhaor"],
                                "name": ["string", "Probando"],
                                "organizationId": ["string", "5f1bc5f2-d34e-4cb5-bc8c-4c6a82cc6723"]
                            }]
                        }],
                        "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": "\/var\/www\/taskmanager\/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": "\/var\/www\/taskmanager\/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": "\/var\/www\/taskmanager\/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": "\/var\/www\/taskmanager\/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": "\/var\/www\/taskmanager\/src\/Kreta\/TaskManager\/Infrastructure\/Ui\/Http\/Symfony\/public\/app_dev.php",
                "line": 34,
                "args": [
                    ["object", "Symfony\\Component\\HttpFoundation\\Request"]
                ]
            }]
        }]
    }
}
benatespina commented 7 years ago

This issue is resolved with #320