Skip to content

Azure function is invoked but the code is never executed #601

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

Closed
dixitsuneel opened this issue Nov 20, 2017 · 5 comments
Closed

Azure function is invoked but the code is never executed #601

dixitsuneel opened this issue Nov 20, 2017 · 5 comments

Comments

@dixitsuneel
Copy link

I can see in the monitoring log that the azure function is getting invoked.
But the code never receives the control for execution.

But if I hit the same http request to the function multiple times, then it starts working correctly after couple of tries.

I know that the control is never received by my code as the first line I have in my function app is context.log.info and that doesn't get executed.

What do we have to do to fix the issue?

Here's the screen shot where you can see multiple requests not completing and the logs section is empty for the selected request(2nd from the top)
request not completing

Here's the screen shot of the first request which completed and you can see the log
request complete

I have also added global exception handling, just in case there is an exception then that method will terminate the context with an error.

Here's the code for the same
process.on('uncaughtException', function (err) {
context.log.error(err);
context.done(err);
});
There is no logging at all. Please help

@dixitsuneel
Copy link
Author

Is there any update? We need an answer on this to make sure that we are able to use azure functions in production correctly. We are blocked because of this issue.

@dbronk
Copy link

dbronk commented Nov 22, 2017

It doesn't look like this issue has been looked at yet or assigned. This is a production blocker for us. How can we escalate this issue?

@jeffhollan
Copy link
Contributor

This issue was moved to Azure/azure-functions-host#2151

@jeffhollan
Copy link
Contributor

Moved to other repo to help track - do you know what version of the runtime you are using? For critical blockers I'd recommend opening a support ticket as well, but in meantime will help from our side.

@christopheranderson
Copy link
Contributor

Sorry, I missed this one. +1 what Jeff said. For production issues, we recommend a support ticket for fast response. GitHub is just best effort.

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

No branches or pull requests

4 participants