vscode-azurefunctions: failed, reason: read ECONNRESET - Deploy to Function App

Does this occur consistently? Yes Repro steps:

  1. Create an azure function in VS Code
  2. Make the required changed in init.py
  3. Deploy to Function App from VS Code.

Action: azureFunctions.deploy Error type: ECONNRESET Error Message: request to https://kalinkaiaudiolowessdev.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS Code failed, reason: read ECONNRESET

Version: 0.24.0 OS: linux OS Release: 4.15.0-1095-azure Product: Visual Studio Code Product Version: 1.49.0 Language: en

Call Stack
ClientRequest.<anonymous> extension.js:363:15219
ClientRequest.emit events.js:228:7
TLSSocket.socketErrorListener _http_client.js:406:9
TLSSocket.emit events.js:223:5
emitErrorNT destroy.js:92:8
emitErrorAndCloseNT destroy.js:60:3
processTicksAndRejections task_queues.js:81:21

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 4
  • Comments: 16 (2 by maintainers)

Most upvoted comments

any update on this?

I had the same issue with VSCode in WSL2. However, I tried shutting down WSL2 using Powershell : wsl --shutdown Then re-opened the vscode project from a new WSL2 terminal, then tried deploying. And it worked.

I am getting this same error with a basic HTTP NodeJS function. No matter what I try, this continues to fail. I have tried to publish it to two different directories/subscriptions (not sure what is the difference with Azure tbh).
WSL2 Windows 10 VSCode: 1.49.2 Node 12.14.1 Azure Functions Extension: v0.24.1

10:03:33 PM: Successfully created resource group "findalltdts".
10:03:33 PM: Creating storage account "findalltdts" in location "eastus" with sku "Standard_LRS"...
10:03:45 PM: Deleting function app "findTdts"...
10:03:49 PM: Successfully deleted function app "findTdts".
10:04:05 PM: Successfully created storage account "findalltdts".
10:04:05 PM: Verifying that Application Insights is available for this location...
10:04:06 PM: Creating Application Insights resource "findalltdts"...
10:04:09 PM: Successfully created Application Insights resource "findalltdts".
10:04:09 PM: Creating new function app "findalltdts"...
10:04:55 PM: Successfully created function app "findalltdts": https://findalltdts.azurewebsites.net
10:04:59 PM findalltdts: Starting deployment...
10:04:59 PM findalltdts: Creating zip package...
10:07:07 PM: Error: request to https://findalltdts.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET