{"action":"created","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/4911","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/4911/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/4911/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/4911/events","html_url":"https://github.com/serverless/serverless/issues/4911","id":314916301,"number":4911,"title":"Support AWS Lambda Node 8.10's async/await during invoke local","user":{"login":"lewisf","id":588210,"avatar_url":"https://avatars2.githubusercontent.com/u/588210?v=4","gravatar_id":"","url":"https://api.github.com/users/lewisf","html_url":"https://github.com/lewisf","followers_url":"https://api.github.com/users/lewisf/followers","following_url":"https://api.github.com/users/lewisf/following{/other_user}","gists_url":"https://api.github.com/users/lewisf/gists{/gist_id}","starred_url":"https://api.github.com/users/lewisf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lewisf/subscriptions","organizations_url":"https://api.github.com/users/lewisf/orgs","repos_url":"https://api.github.com/users/lewisf/repos","events_url":"https://api.github.com/users/lewisf/events{/privacy}","received_events_url":"https://api.github.com/users/lewisf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-17T05:59:51Z","updated_at":"2018-04-18T09:02:26Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n1. If you have a question and not a bug/feature request please ask it at http://forum.serverless.com\r\n2. Please check if an issue already exists so there are no duplicates\r\n3. Check out and follow our Guidelines: https://github.com/serverless/serverless/blob/master/CONTRIBUTING.md\r\n4. Fill out the whole template so we have a good overview on the issue\r\n5. Do not remove any section of the template. If something is not applicable leave it empty but leave it in the Issue\r\n6. Please follow the template, otherwise we'll have to ask you to update it\r\n-->\r\n\r\n# This is a Bug Report\r\n\r\n#### What went wrong?\r\n\r\nRan `invoke local` on a function written using async/await and the node8.10 runtime. It didn't run successfully since serverless still seems to expect a `callback` function.\r\n\r\n#### What did you expect should have happened?\r\n\r\nIt takes the Promise resulting from the async lambda function and waits for it to succeed.\r\n\r\n#### What was the config you used?\r\n\r\n```\r\nprovider:\r\n  name: aws\r\n  runtime: nodejs8.10\r\n```\r\n\r\n#### What stacktrace or error message from your provider did you see?\r\n\r\n`invoke local` just exits early, instead of waiting for the async stuff to finish, leading to no response.\r\n\r\n#### Other details\r\n\r\n* ***Serverless Framework Version you're using***: 1.26.1\r\n* ***Operating System***: Mac OS 10.13.4\r\n* ***Stack Trace***: N/A\r\n* ***Provider Error messages***: N/A\r\n"},"comment":{"url":"https://api.github.com/repos/serverless/serverless/issues/comments/382317276","html_url":"https://github.com/serverless/serverless/issues/4911#issuecomment-382317276","issue_url":"https://api.github.com/repos/serverless/serverless/issues/4911","id":382317276,"user":{"login":"HyperBrain","id":5524702,"avatar_url":"https://avatars3.githubusercontent.com/u/5524702?v=4","gravatar_id":"","url":"https://api.github.com/users/HyperBrain","html_url":"https://github.com/HyperBrain","followers_url":"https://api.github.com/users/HyperBrain/followers","following_url":"https://api.github.com/users/HyperBrain/following{/other_user}","gists_url":"https://api.github.com/users/HyperBrain/gists{/gist_id}","starred_url":"https://api.github.com/users/HyperBrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HyperBrain/subscriptions","organizations_url":"https://api.github.com/users/HyperBrain/orgs","repos_url":"https://api.github.com/users/HyperBrain/repos","events_url":"https://api.github.com/users/HyperBrain/events{/privacy}","received_events_url":"https://api.github.com/users/HyperBrain/received_events","type":"User","site_admin":false},"created_at":"2018-04-18T09:02:26Z","updated_at":"2018-04-18T09:02:26Z","author_association":"MEMBER","body":"@XertroV @dboune Can you verify, that PR #4912 introduces the expected behavior for `sls invoke local`?"}}
{"actor":{"display_login":"HyperBrain"}}