vscode-azurefunctions icon indicating copy to clipboard operation
vscode-azurefunctions copied to clipboard

An incorrect error "Encountered an error (BadGateway) from host runtime." pops up when executing function for a basic Node.js function app from command palette

Open v-mengwe opened this issue 2 years ago • 1 comments

OS: Win10 Azure Resource Extension Build Version: 20220518.13 Azure Function Extension build Version: 20220517.4

Repro Steps:

  1. Create a new basic Node.js function app.
  2. F1 -> Azure Function: Execute Function Now... -> Select a subscription -> Select the created Node.js function app.
  3. Check whether an error "No functions found." pops up.

Expect: An error "No functions found." pops up. image

Actual: An incorrect error "Encountered an error (BadGateway) from host runtime." pops up. image

More Info:

  1. This issue also reproduces for a new basic PowerShell/Java function app.
  2. This issue does not reproduce for a new basic C#/Python function app.

v-mengwe avatar May 18 '22 07:05 v-mengwe

Expand the new created function -> There is an error under the "Functions" node. image Refresh the function app -> The error disappears -> Execute "Azure Function: Execute Function Now..." command again -> The error is correct. image

v-mengwe avatar May 18 '22 08:05 v-mengwe

Does this only happen if the app has just been created?

alexweininger avatar Sep 23 '22 19:09 alexweininger

Similar - it seems to happen mostly when the function app has no added user content to load.

MicroFish91 avatar Sep 23 '22 20:09 MicroFish91