AWS lambda: works locally but fails in deplyment
I've resolved the issue now. 

First of all, console.log(e) should be used to log the result. Then the error will appear in CloudWatch. 

The problem was that the role that was used by the lambda did not permit invoking other lambdas. This can be fixed by granting the missing InvokeFunction permission for the role.