Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node: Exceptions in async callbacks silently break the function #209

Closed
brettsam opened this issue Apr 1, 2016 · 0 comments
Closed

Node: Exceptions in async callbacks silently break the function #209

brettsam opened this issue Apr 1, 2016 · 0 comments
Assignees
Labels
Milestone

Comments

@brettsam
Copy link
Member

brettsam commented Apr 1, 2016

This http trigger has a nullref:

module.exports = function(context, req) {
    setTimeout(function() {
        var name = req.body.does.not.exist;    
        context.done();
    }, 1);
};

But when you run it, the function never completes, you get no indication of an error, you get no log of it in the dashboard, etc.

Doing the same thing in the main body of the method does what you'd expect: Exception while executing function: Functions.HttpTriggerNodeJS1. mscorlib: TypeError: Cannot read property 'not' of undefined

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants