{"action":"closed","issue":{"url":"https://api.github.com/repos/serverless/serverless/issues/1962","repository_url":"https://api.github.com/repos/serverless/serverless","labels_url":"https://api.github.com/repos/serverless/serverless/issues/1962/labels{/name}","comments_url":"https://api.github.com/repos/serverless/serverless/issues/1962/comments","events_url":"https://api.github.com/repos/serverless/serverless/issues/1962/events","html_url":"https://github.com/serverless/serverless/issues/1962","id":173336926,"number":1962,"title":"Local context attributes do not match lambda ENV.","user":{"login":"harakiro","id":7227362,"avatar_url":"https://avatars.githubusercontent.com/u/7227362?v=3","gravatar_id":"","url":"https://api.github.com/users/harakiro","html_url":"https://github.com/harakiro","followers_url":"https://api.github.com/users/harakiro/followers","following_url":"https://api.github.com/users/harakiro/following{/other_user}","gists_url":"https://api.github.com/users/harakiro/gists{/gist_id}","starred_url":"https://api.github.com/users/harakiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/harakiro/subscriptions","organizations_url":"https://api.github.com/users/harakiro/orgs","repos_url":"https://api.github.com/users/harakiro/repos","events_url":"https://api.github.com/users/harakiro/events{/privacy}","received_events_url":"https://api.github.com/users/harakiro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-25T23:40:42Z","updated_at":"2016-08-26T05:39:59Z","closed_at":"2016-08-26T05:39:59Z","body":"context.functionName should be a string.\r\n\r\nTo reproduce create a lambda function that logs typeof context.functionName.\r\n\r\nRun it via sls function run\r\nthen deploy and run it in AWS.\r\n\r\nBug Report Template -----------------------------------------------\r\n\r\n##### Serverless Framework Version: \r\n0.5.6\r\n\r\n##### Operating System: \r\nMac OSX, likely NA\r\n\r\n##### Expected Behavior:\r\nThe context object of the locally running function should at least be the same data types as the one in the lambda execution environment.\r\n\r\n##### Actual Behavior:\r\nServerless overloads the context object with its own context, which even makes use of the AWS context attributes (functionName). However, locally IE (sls function run func1) typeOf context.functionName == object, where as it should be a string representing the lambda function name.\r\n\r\n"}}
{"actor":{"display_login":"pmuens"}}