You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This article provides a guide for troubleshooting common scenarios in Node.js function apps.
17
17
18
-
The **Diagnose and solve problems** tab in the Azure portal is a useful resource to monitor and diagnose possible issues related to your application. It also supplies potential solutions to your problems based on the diagnosis. For more information, see [Azure Function app diagnostics](./functions-diagnostics.md).
18
+
The **Diagnose and solve problems** tab in the [Azure portal](https://portal.azure.com) is a useful resource to monitor and diagnose possible issues related to your application. It also supplies potential solutions to your problems based on the diagnosis. For more information, see [Azure Function app diagnostics](./functions-diagnostics.md).
19
19
20
-
Another useful resource is the **Logs** tab in the Azure Portal for your Application Insights instance so that you can run custom [KQL queries](/azure/data-explorer/kusto/query/). The following example query shows how to view errors and warnings for your app in the past day:
20
+
Another useful resource is the **Logs** tab in the [Azure portal](https://portal.azure.com) for your Application Insights instance so that you can run custom [KQL queries](/azure/data-explorer/kusto/query/). The following example query shows how to view errors and warnings for your app in the past day:
21
21
22
22
```kusto
23
23
let myAppName = "<your app name>";
@@ -31,7 +31,7 @@ union traces,requests,exceptions
31
31
32
32
If those resources didn't solve your problem, the following sections provide advice for specific application issues:
33
33
34
-
## No Functions Found
34
+
## No functions found
35
35
36
36
If you see this error in your deployment logs:
37
37
@@ -44,11 +44,10 @@ Or this error in your function app logs:
44
44
Try the following fixes:
45
45
46
46
::: zone pivot="nodejs-model-v4"
47
-
- If you're running locally:
48
-
- Make sure you're on Azure Functions Core Tools v4.0.5382 or higher.
49
-
- If you're running in Azure:
50
-
- Make sure you're on [Azure Functions Runtime Version](./functions-versions.md) 4.25 or higher.
51
-
- Make sure you're on Node.js v18 or higher.
47
+
- When running locally, make sure you're using Azure Functions Core Tools v4.0.5382 or higher.
48
+
- When running in Azure:
49
+
- Make sure you're using [Azure Functions Runtime Version](./functions-versions.md) 4.25 or higher.
50
+
- Make sure you're using Node.js v18 or higher.
52
51
- Check your function app logs for entry point errors. First, set the app setting `FUNCTIONS_NODE_BLOCK_ON_ENTRY_POINT_ERROR` to `1` to ensure all errors are tracked in yours logs. The following example query shows how to view entry point errors for your app in the past day:
53
52
54
53
```kusto
@@ -75,21 +74,25 @@ If you get the following error in your function app logs:
75
74
> System.Private.CoreLib: Exception while executing function: Functions.httpTrigger1. System.Private.CoreLib: Result: Failure
76
75
> Exception: undici_1.Request is not a constructor
77
76
78
-
Try the following fixes:
79
-
- Make sure you're on Node.js version 18.x or higher.
77
+
Make sure you're using Node.js version 18.x or higher.
80
78
81
79
## Failed to detect the Azure Functions runtime
82
80
83
81
If you get the following error in your function app logs:
84
82
85
83
> WARNING: Failed to detect the Azure Functions runtime. Switching "@azure/functions" package to test mode - not all features are supported.
86
84
87
-
Try the following fixes:
88
-
- Check your `package.json` file for a reference to `applicationinsights` and make sure the version is `^2.7.1` or higher. After updating the version, run `npm install`
85
+
Check your `package.json` file for a reference to `applicationinsights` and make sure the version is `^2.7.1` or higher. After updating the version, run `npm install`
89
86
::: zone-end
90
87
91
-
## Next steps
88
+
## Get help from Microsoft
92
89
93
-
Microsoft support engineers are available to help diagnosing issues with your application. If you're not able to diagnose your problem using this guide, you can file a support ticket by accessing the **Support + troubleshooting** section of your function app page in the Azure portal.
90
+
You can get more help from Microsoft in one of the following ways:
91
+
92
+
- Search the known issues in the [Azure Functions Node.js repository](https://github.com/Azure/azure-functions-nodejs-library/issues). If you don't see your issue mentioned, create a new issue and let us know what has happened.
93
+
- If you're not able to diagnose your problem using this guide, Microsoft support engineers are available to help diagnose issues with your application. Microsoft offers [various support plans](https://azure.microsoft.com/support/plans). Create a support ticket in the **Support + troubleshooting** section of your function app page in the [Azure portal](https://portal.azure.com).
94
+
95
+
## Next steps
94
96
95
-
You can also contact the Azure Functions Node.js team directly [on GitHub](https://github.com/Azure/azure-functions-nodejs-library/issues).
97
+
- [Microsoft Q&A page for Azure Functions](/answers/tags/87/azure-functions)
0 commit comments