Azure / Azure/azure-functions-core-tools
Error while trying to run func start in nodejs/Javascript
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
**I'm running:**
Edition Windows 10 Pro
Version 20H2
OS build 19042.450
This would be my first attempt at building a Javascript/NodeJS function, but I receive the following error when trying to run "func start". I don't receive this error when running "func start" for .NET functions.
Azure Functions Core Tools (3.0.2798 Commit hash: d9d99872a51c04b1c2783198b1ee1104da6b064f)
Function Runtime Version: 3.0.14191.0
[8/15/2020 12:54:00 AM] Building host: startup suppressed: 'False', configuration suppressed: 'False', startup operation id: '4de80a69-5a20-47c4-9305-71273a3a3fcf'
[8/15/2020 12:54:00 AM] Reading host configuration file 'C:\repos\source\AzureFunctions\GMDAnalytics\host.json'
[8/15/2020 12:54:00 AM] Host configuration file read:
[8/15/2020 12:54:00 AM] {
[8/15/2020 12:54:00 AM] "version": "2.0",
[8/15/2020 12:54:00 AM] "logging": {
[8/15/2020 12:54:00 AM] "applicationInsights": {
[8/15/2020 12:54:00 AM] "samplingSettings": {
[8/15/2020 12:54:00 AM] "isEnabled": true,
[8/15/2020 12:54:00 AM] "excludedTypes": "Request"
[8/15/2020 12:54:00 AM] }
[8/15/2020 12:54:00 AM] }
[8/15/2020 12:54:00 AM] },
[8/15/2020 12:54:00 AM] "extensionBundle": {
[8/15/2020 12:54:00 AM] "id": "Microsoft.Azure.Functions.ExtensionBundle",
[8/15/2020 12:54:00 AM] "version": "[1.*, 2.0.0)"
[8/15/2020 12:54:00 AM] }
[8/15/2020 12:54:00 AM] }
[8/15/2020 12:54:00 AM] Loading functions metadata
[8/15/2020 12:54:00 AM] FUNCTIONS_WORKER_RUNTIME set to node. Skipping WorkerConfig for language:java
[8/15/2020 12:54:00 AM] FUNCTIONS_WORKER_RUNTIME set to node. Skipping WorkerConfig for language:powershell
[8/15/2020 12:54:00 AM] FUNCTIONS_WORKER_RUNTIME set to node. Skipping WorkerConfig for language:python
[8/15/2020 12:54:00 AM] Reading functions metadata
[8/15/2020 12:54:00 AM] 1 functions found
[8/15/2020 12:54:01 AM] 1 functions loaded
[8/15/2020 12:54:01 AM] Looking for extension bundle Microsoft.Azure.Functions.ExtensionBundle at C:\Users\ajtat\AppData\Local\Temp\Functions\ExtensionBundles\Microsoft.Azure.Functions.ExtensionBundle
[8/15/2020 12:54:01 AM] Fetching information on versions of extension bundle Microsoft.Azure.Functions.ExtensionBundle available on https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json
[8/15/2020 12:54:01 AM] A host error has occurred during startup operation '4de80a69-5a20-47c4-9305-71273a3a3fcf'.
[8/15/2020 12:54:01 AM] System.Net.Http: An error occurred while sending the request. System.Net.Security: Cannot determine the frame size or a corrupted frame was received.
Value cannot be null. (Parameter 'provider')
Application is shutting down...
[8/15/2020 12:54:01 AM] Initialization cancellation requested by runtime.
[8/15/2020 12:54:01 AM] Stopping host...
[8/15/2020 12:54:01 AM] Host shutdown completed
Needless to say, I needed to have something up and running quickly, so I went ahead and just made it a web app and have it running that way. Which is probably a bit overkill, but until this gets resolved I'll just keep it that way.
Contributor guide
Research direction
Start by reproducing `func start` for the Node.js function on Windows 10 with the shown host.json and Core Tools versions. Investigate the extension-bundle request to the Azure CDN and the reported TLS error; done means the host starts without the startup error and loads the function.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100