-
Notifications
You must be signed in to change notification settings - Fork 207
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
Comments
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. |
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? |
This issue was moved to Azure/azure-functions-host#2151 |
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. |
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. |
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)

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

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
The text was updated successfully, but these errors were encountered: