Azure / Azure/azure-functions-core-tools
Azure function run attempt failing
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 498
- Avg merge
- 4d 20h
- Merged PRs (30d)
- 14
Description
I am trying to run a new HTTP Trigger Azure function locally, but it is failing with the following log. I did try to add my proxy information to local.settings.json but that had no effect - however that did result in the "Skipping" notes below.
Azure Functions Core Tools
Core Tools Version: 4.0.4629 Commit hash: N/A (64-bit)
Function Runtime Version: 4.6.1.18388
Skipping 'http_proxy' from local settings as it's already defined in current environment variables.
Skipping 'https_proxy' from local settings as it's already defined in current environment variables.
Skipping 'no_proxy' from local settings as it's already defined in current environment variables.
Skipping 'HTTP_PROXY' from local settings as it's already defined in current environment variables.
Skipping 'HTTPS_PROXY' from local settings as it's already defined in current environment variables.
Skipping 'NO_PROXY' from local settings as it's already defined in current environment variables.
Functions:
HttpTrigger_gb1175_1: [GET,POST] http://localhost:7071/api/HttpTrigger_1
For detailed output, run func with --verbose flag.
[2022-07-13T17:21:47.939Z] Debugger listening on ws://127.0.0.1:9229/f36dc89c-aceb-4f0a-bf7d-d783493e95af
[2022-07-13T17:21:47.942Z] For help, see: https://nodejs.org/en/docs/inspector
[2022-07-13T17:21:48.247Z] [error] Worker 33556106-36fd-4a5f-b1f7-a6511b4b0e54 encountered event stream error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error
[2022-07-13T17:21:48.250Z] [error] Worker 33556106-36fd-4a5f-b1f7-a6511b4b0e54 uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11)
[2022-07-13T17:21:48.251Z] at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820)
[2022-07-13T17:21:48.255Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82410)
[2022-07-13T17:21:48.256Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778)
[2022-07-13T17:21:48.257Z] at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889
[2022-07-13T17:21:48.258Z] at processTicksAndRejections (node:internal/process/task_queues:78:11) {
[2022-07-13T17:21:48.259Z] Language Worker Process exited. Pid=6480.
[2022-07-13T17:21:48.259Z] code: 13,
[2022-07-13T17:21:48.260Z] node exited with code 1 (0x1). at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820), details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',,LanguageWorkerConsoleLog[error] Worker 33556106-36fd-4a5f-b1f7-a6511b4b0e54 uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11).
[2022-07-13T17:21:48.261Z] details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',
[2022-07-13T17:21:48.264Z] metadata: u { internalRepr: Map(0) {}, options: {} }
[2022-07-13T17:21:48.264Z] }
[2022-07-13T17:21:48.277Z] Failed to start a new language worker for runtime: node.
[2022-07-13T17:21:48.279Z] System.Private.CoreLib: A task was canceled.
[2022-07-13T17:21:48.403Z] Debugger listening on ws://127.0.0.1:9229/1d5067a6-fef2-493e-b89a-05037a6ad827
[2022-07-13T17:21:48.406Z] For help, see: https://nodejs.org/en/docs/inspector
[2022-07-13T17:21:48.707Z] [error] Worker 51fa7e95-afdc-48a2-91ea-312973531b3d encountered event stream error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error
[2022-07-13T17:21:48.710Z] [error] Worker 51fa7e95-afdc-48a2-91ea-312973531b3d uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11)
[2022-07-13T17:21:48.710Z] at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820)
[2022-07-13T17:21:48.714Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82410)
[2022-07-13T17:21:48.715Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778)
[2022-07-13T17:21:48.716Z] at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889
[2022-07-13T17:21:48.718Z] at processTicksAndRejections (node:internal/process/task_queues:78:11) {
[2022-07-13T17:21:48.718Z] Language Worker Process exited. Pid=4584.
[2022-07-13T17:21:48.720Z] code: 13,
[2022-07-13T17:21:48.720Z] node exited with code 1 (0x1). at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820), details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',,LanguageWorkerConsoleLog[error] Worker 51fa7e95-afdc-48a2-91ea-312973531b3d uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11).
[2022-07-13T17:21:48.721Z] details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',
[2022-07-13T17:21:48.723Z] metadata: u { internalRepr: Map(0) {}, options: {} }
[2022-07-13T17:21:48.724Z] }
[2022-07-13T17:21:52.761Z] Host lock lease acquired by instance ID '0000000000000000000000001DADB7AD'.
[2022-07-13T17:21:58.813Z] Debugger listening on ws://127.0.0.1:9229/bd67d2e5-47c0-44a3-810e-678ed7d2a070
[2022-07-13T17:21:58.815Z] For help, see: https://nodejs.org/en/docs/inspector
[2022-07-13T17:21:59.117Z] [error] Worker 86d28181-ccb4-4e6d-a578-b9d2a3eaa72b encountered event stream error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error
[2022-07-13T17:21:59.119Z] at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820)
[2022-07-13T17:21:59.119Z] [error] Worker 86d28181-ccb4-4e6d-a578-b9d2a3eaa72b uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11)
[2022-07-13T17:21:59.120Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82410)
[2022-07-13T17:21:59.123Z] at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778)
[2022-07-13T17:21:59.124Z] at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889
[2022-07-13T17:21:59.125Z] at processTicksAndRejections (node:internal/process/task_queues:78:11) {
[2022-07-13T17:21:59.127Z] code: 13,
[2022-07-13T17:21:59.128Z] details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',
[2022-07-13T17:21:59.129Z] Language Worker Process exited. Pid=10616.
[2022-07-13T17:21:59.130Z] metadata: u { internalRepr: Map(0) {}, options: {} }
[2022-07-13T17:21:59.131Z] node exited with code 1 (0x1). at Object.t.callErrorFromStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:56820), details: 'Received RST_STREAM with code 2 triggered by internal client error: Protocol error',,LanguageWorkerConsoleLog[error] Worker 86d28181-ccb4-4e6d-a578-b9d2a3eaa72b uncaught exception: Error: Error: 13 INTERNAL: Received RST_STREAM with code 2 triggered by internal client error: Protocol error at l. (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:39975) at l.emit (node:events:390:28) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:82395) at Object.onReceiveStatus (C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:74778) at C:\Program Files\Microsoft\Azure Functions Core Tools\workers\node\dist\src\worker-bundle.js:2:47889 at processTicksAndRejections (node:internal/process/task_queues:78:11).
[2022-07-13T17:21:59.132Z] }
[2022-07-13T17:21:59.134Z] Exceeded language worker restart retry count for runtime:node. Shutting down and proactively recycling the Functions Host to recover
Contributor guide
Research direction
Reproduce the HTTP Trigger locally with Azure Functions Core Tools 4.0.4629 and Node runtime 4.6.1.18388, first running func with --verbose as suggested. Inspect the reported workers/node/dist/src/worker-bundle.js path and the local.settings.json proxy behavior. Done means the Node language worker starts and the local HTTP trigger runs without the RST_STREAM protocol error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, node.js
- Domain
- cli, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100