Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed, reason: read ECONNRESET - Deploy to Function App #2795

Closed
blomm opened this issue May 11, 2021 · 4 comments
Closed

failed, reason: read ECONNRESET - Deploy to Function App #2795

blomm opened this issue May 11, 2021 · 4 comments
Labels
info-needed See https://aka.ms/azcodeissuereporting

Comments

@blomm
Copy link

blomm commented May 11, 2021

(Please don't mark as duplicate, this is on a Mac)

Does this occur consistently? Yes
Repro steps:

Create an azure function in VS Code
Deploy to Function App from VS Code.
Action: azureFunctions.deploy
Error type: ECONNRESET
Error Message: request to https:/blahblahblah.scm.azurewebsites.net/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET

Version of azure-functions-core-tools : 3 (brew install azure-functions-core-tools@3)
OS: Mac
OS Release: Big Sur and Catalina

Tried with multiple versions of VS code, below is March 2021 (tried to rollback), was initially using April 2021:
Version: 1.54.3
Commit: 2b9aebd5354a3629c3aba0a5f5df49f43d6689f8
Date: 2021-03-15T11:57:12.728Z (1 mo ago)
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Darwin x64 20.3.0

I've tried switching between Node 8 - 10 - 12 - 14, but no luck

This was working on my laptop (Big Sur), then it stopped. I'm not sure what changed.

Publishing azure functions was still working on my desktop (Catalina), so I used this. Then I restarted VS code, and now it doesn't work here either.

I've tried:

  • Signing in and out of Azure
  • Rolling back versions of VS code
  • All acceptable versions of Node
  • Using Yarn commands in settings.json (instead of npm)

I'm totally stuck, I've read and tried everything on the internet, but no luck.

@blomm
Copy link
Author

blomm commented May 11, 2021

Sweet baby Jesus, Mary, Joseph, and the wee donkey, I've figured it out.

I downgraded the version of the Azure Functions Extension to 1.2.1 from 1.3

Just the 1 day of work lost. This is definitely a bug that needs looking at.

@ejizba
Copy link
Contributor

ejizba commented May 17, 2021

"ECONNRESET" is an error code coming from Azure, so it's unlikely to be affected by your local setup like Node.js version, VS Code version, or OS. It may be related to the Azure Functions extension version, but I have not heard of any widespread problems with v1.3.0 and it's been out a decent while. We've tried to reduce the number of "ECONNRESET" errors (usually just retrying the request does the trick), but it's virtually impossible to eliminate them completely.

The most likely cause of the error is the function app in Azure itself, so a few questions about that:

  • How did you create it - though VS Code, the portal, etc.?
  • Is it using a consumption plan?
  • Is it using Windows or Linux?

Another source of this error could be your project itself. Is it by chance a particularly large project? Do you see the error if you deploy a simple project with just an Http trigger?

@ejizba ejizba added the info-needed See https://aka.ms/azcodeissuereporting label May 24, 2021
@blomm
Copy link
Author

blomm commented May 25, 2021

thanks for replying @ejizba

  • I created the functions through the vs code azure functions extension
  • I'm not sure what you mean by consumption plan (so the answer is probably no)
  • I'm using a mac

This was definitely working on two different Macs. One Mac upgraded and deployment stopped working, then when the 2nd machine upgraded, it also stopped working.

Both now work fine once rolled back, sorry I can't help more.

@ejizba
Copy link
Contributor

ejizba commented Jun 8, 2021

This issue is not usually related to local machine setup like OS or extension version. It's a transient issue related to our connection to Azure. In any case, closing in favor of #2844

@ejizba ejizba closed this as completed Jun 8, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Jul 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed See https://aka.ms/azcodeissuereporting
Projects
None yet
Development

No branches or pull requests

2 participants