Cannot deploy Azure nodejs function after update to v1.15.1
After updating VSCode extension to V 1.15.1, deploying to an existing function using the extension fails with an error message: "Internal error: Expected value to be neither null nor undefined: newSiteName". (newSiteName is nowhere to be found in the project). After downgrading I get the same message so it's a puzzle because it was working before. I'm using VSCode on a MAC with Sonoma.
Publishing through the command line works like a charm.
I tried even to create a new example project and got the same issue.
regards, Olafur
Hi there, sorry that you're running into problems.
Could you tell me exactly what steps you are doing to deploy? Like, the entry point, what you click after that, etc.
Also, could you try downgrading to v1.14.3 to see if that fixes the error?
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
I am running to the same issue. Aplication runs fine in local enviroment, but when I go to deploy to azure I get:
"Internal error: Expected value to be neither null nor undefined: newSiteName"
me too.... the deployment process was working fine a few months ago and nothing changed since
Could you please try running this alpha version of the extension? I think that it may resolve your issue.
- Unzip the zip file
- In VS Code, press F1 > Install from VSIX
- Click the .vsix file that was extracted from the zip file
- Reload VS Code
Please let me know if this resolves the deployment issue!
unfortunatelly, the same error still persists. (installed the alpha version and restarted VS Code)
Could you provide some details about your function app? Like runtime, OS, and what app service plan you are using?
If you're able, can you try making a new app and deploying to that?
Hello @nturinski I am getting the same error. I use net8.0, the worker runtime is dotnet-isolated, functions v4. When I first create the function app and then try to deploy the functions from VS code into this function app I am getting the same error as the others. When I create a new function app while I am deploying the functions in VS code I get NO error, and the deployment works as expected. Next, after deploying to a new function app, I tried to deploy again to an existing function app (from step 1) and this time the deployment worked.
Could anyone having this issue answer how they are deploying their app?
There are a few entry points to start a function deployment:
- Right-click a function app node in the tree view, click
Deploy to Function App... - Click the function button on the Workspace ribbon and click
Deploy to Azure... - Right-click the
Local Projectnode and clickDeploy to Azure... - The command palette
This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Hi I'm facing the same issue after upgrade. Do you know if that will be fixed soon? Do I need to downgrade the version?
I installed alpha version of the extension. It solve the issue.