{"action":"created","issue":{"url":"https://api.github.com/repos/apex/apex/issues/711","repository_url":"https://api.github.com/repos/apex/apex","labels_url":"https://api.github.com/repos/apex/apex/issues/711/labels{/name}","comments_url":"https://api.github.com/repos/apex/apex/issues/711/comments","events_url":"https://api.github.com/repos/apex/apex/issues/711/events","html_url":"https://github.com/apex/apex/issues/711","id":216881090,"number":711,"title":"Error: function response: json: cannot unmarshal array into Go struct field InvokeError.stackTrace of type string","user":{"login":"glasserc","id":17006,"avatar_url":"https://avatars0.githubusercontent.com/u/17006?v=4","gravatar_id":"","url":"https://api.github.com/users/glasserc","html_url":"https://github.com/glasserc","followers_url":"https://api.github.com/users/glasserc/followers","following_url":"https://api.github.com/users/glasserc/following{/other_user}","gists_url":"https://api.github.com/users/glasserc/gists{/gist_id}","starred_url":"https://api.github.com/users/glasserc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glasserc/subscriptions","organizations_url":"https://api.github.com/users/glasserc/orgs","repos_url":"https://api.github.com/users/glasserc/repos","events_url":"https://api.github.com/users/glasserc/events{/privacy}","received_events_url":"https://api.github.com/users/glasserc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-03-24T19:16:45Z","updated_at":"2018-03-22T18:26:17Z","closed_at":null,"author_association":"NONE","body":"When using `apex invoke` to run a Python lambda that throws an exception, apex does not show the exception. Instead, it displays the above error message.\r\n\r\n  - __Operating system__: Fedora 25\r\n  - __Apex Version__: 0.13.1 (just did `apex upgrade`)\r\n\r\nHere is a sample run:\r\n\r\n```\r\n> apex invoke sign-xpi -ldebug <sample.event \r\n   • loading functions in functions\r\n   • open                      env= function=sign-xpi\r\n   • loaded config             config=function.json env= function=sign-xpi\r\n   ⨯ Error: function response: json: cannot unmarshal array into Go struct field InvokeError.stackTrace of type string\r\n```\r\n\r\nThe output of the lambda, as far as I can tell, is:\r\n\r\n```\r\n{\r\n  \"stackTrace\": [\r\n    [\r\n      \"/var/task/sign_xpi.py\",\r\n      79,\r\n      \"handle\",\r\n      \"return sign_xpi(sign_event)\"\r\n    ],\r\n    [\r\n      \"/var/task/sign_xpi.py\",\r\n      92,\r\n      \"sign_xpi\",\r\n      \"raise ChecksumMatchError(url, event['checksum'], local_checksum)\"\r\n    ]\r\n  ],\r\n  \"errorType\": \"ChecksumMatchError\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/apex/apex/issues/comments/375410965","html_url":"https://github.com/apex/apex/issues/711#issuecomment-375410965","issue_url":"https://api.github.com/repos/apex/apex/issues/711","id":375410965,"user":{"login":"tj","id":25254,"avatar_url":"https://avatars2.githubusercontent.com/u/25254?v=4","gravatar_id":"","url":"https://api.github.com/users/tj","html_url":"https://github.com/tj","followers_url":"https://api.github.com/users/tj/followers","following_url":"https://api.github.com/users/tj/following{/other_user}","gists_url":"https://api.github.com/users/tj/gists{/gist_id}","starred_url":"https://api.github.com/users/tj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tj/subscriptions","organizations_url":"https://api.github.com/users/tj/orgs","repos_url":"https://api.github.com/users/tj/repos","events_url":"https://api.github.com/users/tj/events{/privacy}","received_events_url":"https://api.github.com/users/tj/received_events","type":"User","site_admin":false},"created_at":"2018-03-22T18:26:17Z","updated_at":"2018-03-22T18:26:17Z","author_association":"OWNER","body":"@temoto hmm that doesn't look like an erro from Apex, that array of stack trace stuff must be from AWS, unless I'm completely forgetting something hahah but I'm 99% sure"}}
{"actor":{"display_login":"tj"}}