Azure / Azure/azure-functions-core-tools

[2020-11-25T18:15:26.820Z] [error] Incompatible Node.js version (v15.3.0) not showing by default on function project

Open
#2,313 3 comments 0 reactions 2 assignees Claimed by @ankitkumarr View on GitHub
Dominant language
C#
Stars
1.5k
Forks
498
Avg merge
5d 4h
Merged PRs (30d)
15

Description

Hey there,

I am creating this issue following a discussion with @anthonychu on [Twitter](https://twitter.com/nthonyChu/status/1331661787532443648).

In short: I created and used azure function core tools for the first time today in vscode.

func version is `3.0.2996`. OS is Mac OS X Big Sur, and the core tools were installed (by vscode) using `brew`.

**What happens :**

No error shows up. This is the log that I am getting when firing up the app (with a Node 15).

```
> Executing task: func host start <

Azure Functions Core Tools
Core Tools Version: 3.0.2996 Commit hash: c54cdc36323e9543ba11fb61dd107616e9022bba
Function Runtime Version: 3.0.14916.0

[2020-11-25T18:19:52.165Z] Exceeded language worker restart retry count for runtime:node. Shutting down and proactively recycling the Functions Host to recover

Functions:

MonitoringDeadHTTPTrigger: [GET,POST] http://localhost:7071/api/myfunctionname

TimerTrigger1: timerTrigger

For detailed output, run func with --verbose flag.
[2020-11-25T18:19:52.576Z] Executing 'Functions.TimerTrigger1' (Reason='Timer fired at 2020-11-25T19:19:52.5396040+01:00', Id=344cc6bb-3037-4b72-8a74-c2676172a98e)
[2020-11-25T18:19:52.578Z] Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2020-11-25T15:48:00.0000000+01:00
```

Note that there is no mention of the incompatible Node version.

**Expected behavior:**

Errors show up in the logs when I run the function app locally.

To have them show up, I added

```
...
"logLevel": {
"default": "Debug"
}
...
```

to `host.json`.

Restarting the app then shows :

```
... # loads of irrelevant things
[2020-11-25T18:21:48.393Z] [error] Incompatible Node.js version (v15.3.0). Refer to our documentation to see the Node.js versions supported by each version of Azure Functions: https://aka.ms/functions-node-versions
[2020-11-25T18:21:48.398Z] Language Worker Process exited. Pid=3059.
[2020-11-25T18:21:48.398Z] node exited with code 1
[2020-11-25T18:21:48.398Z] LanguageWorkerConsoleLog[error] Incompatible Node.js version (v15.3.0). Refer to our documentation to see the Node.js versions supported by each version of Azure Functions: https://aka.ms/functions-node-versions.
[2020-11-25T18:21:48.398Z] Handling WorkerErrorEvent for runtime:node, workerId:node. Failed with: Microsoft.Azure.WebJobs.Script.Workers.WorkerProcessExitException: node exited with code 1
[2020-11-25T18:21:48.399Z] LanguageWorkerConsoleLog[error] Incompatible Node.js version (v15.3.0). Refer to our documentation to see the Node.js versions supported by each version of Azure Functions: https://aka.ms/functions-node-versions
[2020-11-25T18:21:48.399Z] Attempting to dispose webhost or jobhost channel for workerId: dccc32eb-2716-4477-bccf-72471a97cfd1, runtime:node
[2020-11-25T18:21:48.399Z] Disposing JobHost language worker channel with id:dccc32eb-2716-ff77-bccf-72471a97cfd1
[2020-11-25T18:21:48.399Z] No initialized worker channels for runtime 'node'. Delaying future invocations
[2020-11-25T18:21:48.399Z] Restarting worker channel for runtime:node
[2020-11-25T18:21:48.400Z] Exceeded language worker restart retry count for runtime:node. Shutting down and proactively recycling the Functions Host to recover
[2020-11-25T18:21:48.402Z] Initializing function HTTP routes
[2020-11-25T18:21:48.402Z] Mapped function route 'api/MonitoringDeadHTTPTrigger' [get,post] to 'MonitoringDeadHTTPTrigger'
[2020-11-25T18:21:48.402Z]
[2020-11-25T18:21:48.413Z] Host initialized (898ms)

Functions:

MonitoringDeadHTTPTrigger: [GET,POST] http://localhost:7071/api/myFunctionName

TimerTrigger1: timerTrigger

For detailed output, run func with --verbose flag.
[2020-11-25T18:21:49.154Z] Singleton lock acquired (juliensmacbookpro-146500637/Host.Functions.TimerTrigger1.Listener)
[2020-11-25T18:21:49.165Z] The 'TimerTrigger1' timer is using the schedule 'Cron: '0 0,12,24,36,48 * * * *'' and the local time zone: '(UTC+01:00) Central European Standard Time'
[2020-11-25T18:21:49.509Z] Function 'TimerTrigger1' initial status: Last='2020-11-25T15:36:00.0064750+01:00', Next='2020-11-25T15:48:00.0000000+01:00', LastUpdated='2020-11-25T15:36:00.0064750+01:00'
[2020-11-25T18:21:49.512Z] Function 'TimerTrigger1' is past due on startup. Executing now.
[2020-11-25T18:21:49.582Z] Executing 'Functions.TimerTrigger1' (Reason='Timer fired at 2020-11-25T19:21:49.5236020+01:00', Id=08f138ee-db1c-480a-950d-177ee1ba2aff)
[2020-11-25T18:21:49.584Z] Trigger Details: UnscheduledInvocationReason: IsPastDue, OriginalSchedule: 2020-11-25T15:48:00.0000000+01:00
```

Note that the error is now present :

```
[2020-11-25T18:21:48.399Z] LanguageWorkerConsoleLog[error] Incompatible Node.js version (v15.3.0). Refer to our documentation to see the Node.js versions supported by each version of Azure Functions: https://aka.ms/functions-node-versions
```

Happy to give more info if needed. I have not tried setting the log level to other levels.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.