vscode-azurefunctions
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
OS: Win10 Azure Resource Extension Build Version: 20220518.13 Azure Function Extension build Version: 20220517.4
Repro Steps:
- Create a new basic Node.js function app.
- F1 -> Azure Function: Execute Function Now... -> Select a subscription -> Select the created Node.js function app.
- Check whether an error "No functions found." pops up.
Expect:
An error "No functions found." pops up.
Actual:
An incorrect error "Encountered an error (BadGateway) from host runtime." pops up.
More Info:
- This issue also reproduces for a new basic PowerShell/Java function app.
- This issue does not reproduce for a new basic C#/Python function app.
Expand the new created function -> There is an error under the "Functions" node.
Refresh the function app -> The error disappears -> Execute "Azure Function: Execute Function Now..." command again -> The error is correct.
Does this only happen if the app has just been created?
Similar - it seems to happen mostly when the function app has no added user content to load.