{"action":"created","issue":{"url":"https://api.github.com/repos/graphcool/graphcool/issues/433","repository_url":"https://api.github.com/repos/graphcool/graphcool","labels_url":"https://api.github.com/repos/graphcool/graphcool/issues/433/labels{/name}","comments_url":"https://api.github.com/repos/graphcool/graphcool/issues/433/comments","events_url":"https://api.github.com/repos/graphcool/graphcool/issues/433/events","html_url":"https://github.com/graphcool/graphcool/issues/433","id":256195741,"number":433,"title":"Runtime error in a pipeline function is not apparent when running mutation","user":{"login":"schickling","id":1567498,"avatar_url":"https://avatars2.githubusercontent.com/u/1567498?v=4","gravatar_id":"","url":"https://api.github.com/users/schickling","html_url":"https://github.com/schickling","followers_url":"https://api.github.com/users/schickling/followers","following_url":"https://api.github.com/users/schickling/following{/other_user}","gists_url":"https://api.github.com/users/schickling/gists{/gist_id}","starred_url":"https://api.github.com/users/schickling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schickling/subscriptions","organizations_url":"https://api.github.com/users/schickling/orgs","repos_url":"https://api.github.com/users/schickling/repos","events_url":"https://api.github.com/users/schickling/events{/privacy}","received_events_url":"https://api.github.com/users/schickling/received_events","type":"User","site_admin":false},"labels":[{"id":502070905,"url":"https://api.github.com/repos/graphcool/graphcool/labels/area/functions","name":"area/functions","color":"fbca04","default":false},{"id":490864289,"url":"https://api.github.com/repos/graphcool/graphcool/labels/component/engine","name":"component/engine","color":"d4c5f9","default":false},{"id":543484877,"url":"https://api.github.com/repos/graphcool/graphcool/labels/kind/bug","name":"kind/bug","color":"d93f0b","default":false},{"id":502077932,"url":"https://api.github.com/repos/graphcool/graphcool/labels/kind/feature","name":"kind/feature","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-09-08T09:33:48Z","updated_at":"2017-09-08T19:56:22Z","closed_at":null,"author_association":"OWNER","body":"<a href=\"https://github.com/FredyC\"><img src=\"https://avatars0.githubusercontent.com/u/1096340?v=4\" align=\"left\" width=\"96\" height=\"96\" hspace=\"10\"></img></a> **Issue by [FredyC](https://github.com/FredyC)**\n_Thursday Aug 17, 2017 at 14:52 GMT_\n_Originally opened as https://github.com/graphcool/api-bugs/issues/235_\n\n----\n\n**What is the current behavior?**\r\nRunning just a regular mutation over a type while there is a request pipeline which contains an error ends up with an error message from which it's not apparent where the problem is...\r\n\r\n> A function returned an unhandled error. Please check the logs for executionId 'eu-west-1:simple:cj6gh8qnshfmj0146nep4r84d\r\n\r\n**Please share the relevant part of your GraphQL schema and all functions, permissions or other project settings for easier reproduction**\r\n\r\nSetup a simple request pipeline function with a runtime error that runs with mutation, eg. createUser.\r\n\r\n**What is the expected behavior?**\r\nFor starters, it would be nice if error message included the name of the function which failed. To me, this error message wasn't clear that it's actually my custom function failing there (I completely forgot I have it there).\r\n\r\nFurthermore, the error message tells you to *check the logs for executionId* while it's not possible to really find log message by that ID anywhere, not even mentioning a case when there multiple different functions that could be causing a problem.\r\n\r\nFor a stretch goal, it would be lovely seeing an actual error message from function run in the response payload.\n"},"comment":{"url":"https://api.github.com/repos/graphcool/graphcool/issues/comments/328199150","html_url":"https://github.com/graphcool/graphcool/issues/433#issuecomment-328199150","issue_url":"https://api.github.com/repos/graphcool/graphcool/issues/433","id":328199150,"user":{"login":"sorenbs","id":281337,"avatar_url":"https://avatars3.githubusercontent.com/u/281337?v=4","gravatar_id":"","url":"https://api.github.com/users/sorenbs","html_url":"https://github.com/sorenbs","followers_url":"https://api.github.com/users/sorenbs/followers","following_url":"https://api.github.com/users/sorenbs/following{/other_user}","gists_url":"https://api.github.com/users/sorenbs/gists{/gist_id}","starred_url":"https://api.github.com/users/sorenbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorenbs/subscriptions","organizations_url":"https://api.github.com/users/sorenbs/orgs","repos_url":"https://api.github.com/users/sorenbs/repos","events_url":"https://api.github.com/users/sorenbs/events{/privacy}","received_events_url":"https://api.github.com/users/sorenbs/received_events","type":"User","site_admin":false},"created_at":"2017-09-08T19:56:22Z","updated_at":"2017-09-08T19:56:22Z","author_association":"OWNER","body":"A link to the log is a great idea.\r\n\r\nI was actually referring to your function :-) These errors will be displayed to your users, and you might not want them to see your function names"}}
{"actor":{"display_login":"sorenbs"}}