Skip to content

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

Closed
@brettsam

Description

@brettsam

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions