-
Notifications
You must be signed in to change notification settings - Fork 136
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
Investigate ECONNRESET issue during "zipdeploy" call #2844
Comments
just tried 1.6, and it's still the case for me that any version 1.3.0 or greater fails with this error, so I'll stick to the version just before 1.3.0, 1.2.1 where it works just fine. |
I'm experiencing the same (I think) issues as @blomm - deploy of TypeScript Azure Functions project does not work from VS Code with v1.6 (ECONNRESET), works fine after downgrading to 1.2.1. Let me know if I could provide more info for the investigation |
Had the exact same issue and downgrading the Azure functions extension resolved it. Note that I had a whole bunch of issues deploying via Github actions which is why I moved to doing the deployment through the extension instead. My function app is quite large (~10 individual functions). |
The only change between v1.3.0 and v1.2.1 that I can see that would impact the ECONNRESET error is right here: microsoft/vscode-azuretools@c6d587c#diff-193b27d62e4fbda3d563009fed5ec6761a05f73558d94b39fab63ae948c679eaR38 Between versions, we updated the The only change between those versions is updating the ui package: Where we updated So seems like we should start our investigation from there. 🔍 |
Ran into the issue yesterday after updating VS Code (I update frequently, so that it worked before should not have been caused by using some outdated version). Suddenly all TypeScript deployments got stuck just after the zip is created ( I've tried everything from reinstalling Core Tools, rebooting, using different app service plan and waiting several hours (as I've read ECONNRESET in Azure is usually only transient issue), but only thing that makes this work again is downgrading to the previously mentioned year old release 1.2.1, where the zip creation is immediately followed by output |
Same issue here. After today's update of VSCode (March 2022) the Logic Apps deployment doesn't work anymore. |
can we treat this issue seriously yet @ejizba? |
One more problem with the v1.2.1 workaround - turns out this does not accept ~4 as a functions target version, only ~1 - ~3, which effectively constraints to use manual CLI publish if you need to target ~4. |
Same error using VSCode 1.66.0 |
I've captured the problematic request and did a little comparison. It seems, that while the old 1.2.1 version provides Content-Length and the actual file content, the 1.6.1 request issues a chunk request, without any body - maybe that's where the server hangs waiting for the first chunk. The non-working request does not make it into Kudu traces at |
Based on the number of comments within several hours, I'm guessing this is a new issue related to the release of VS Code 1.66. Does it reproduce if you use the previous version of VS Code? I checked the release notes and the only thing I saw that could be related is they bumped from Node.js v14 to v16. I'm not on this particular team anymore, but hopefully @nturinski @alexweininger or @bwateratmsft could take a look relatively soon. @sven5 the logic apps extension is a different extension/team - you'll have to follow up with them separately. |
Users created an issue on VS Code: microsoft/vscode#146470 I'm able to reproduce the issue on VS Code version details
I agree that this seems to be related to the As for the issue itself, I'm not immediately sure how upgrading from Node.JS v14 to v16 could break zip deploy, but we'll investigate. 🕵️ |
Also having this issue. Could be from VSCode Azure SDK for Node.js - App Service Tools. Which appears to silently failing unit tests? I'm not sure, but those look like errors from the log, yet reporting successful test cases. Which maybe why it wasn't caught pre-release. Should an issue be opened on the Azure SDK for Node.js repo? |
An alternative if someone is looking for another option (using Azure Functions Core Tools (4.x or later) and Azure CLI (2.4 or later)):
open to suggestions |
Was having the same issue. Reverting to 16.5.2 did solve it |
Same issue, VS Code updated to March 2022 release and suddenly deployments stopped. All I see in logs was creating a zip file and then after long wait an error to call zipdeploy API. Tried all options but eventually downgrading to 1.65 helped. Not sure what is the root issue, but there is something breaking between the two releases when it comes to Azure functions. |
This issue has been plaguing me for days but downgrading VS Code to 1.65.2 solved it instantly. |
I can't believe it -- I search internet -- and you kind people are right -- the new update broke all this -- I couldnt even get LocalGit to work right . Thanks for the downgrade suggestion - its working again for me |
I don't know why to downvote me, I am telling you I had that problem too, VScode updated and start working, and my client was waiting for some changes. |
It didn't work for me: VS Code: 1.66.1 It worked was to downgrade to VS Code 1.65.2 |
@paladin2005 Understood. There seems to be some misunderstanding due to language gaps perhaps. Do you want to say that: your VSCode also got updated to 1.66 and you started working on some changes which client asked. But when you tried to upload, it failed. If that is the part with "update", you are absolutely correct. Everyone started facing the problem with this update to version 1.66. Only solution which worked for others (and most likely for you also) is to downgrade to 1.65 release of VSCode. |
Alternative one-line deployment use |
Hi everyone, I believe to have found a fix. If anyone can help verify the fix for me that would be a big help! Steps to install extension development build:
Once installed, attempt to deploy your app as normal. Report back and let us know if deployment succeeded/failed. Thanks! |
Thanks @alexweininger, I will give it a try in few minutes. |
@alexweininger - I just tried here, installed v1.6.2-alpha from the vsix on v1.66.0 vscode. I received the same error unfortunately: Downgrading to v1.65.2 vscode resolves temporarily, as mentioned by others |
@chazix thanks for taking the time to verify. Could you try again with the updated steps? Thanks! |
@alexweininger, I tried using updated plugin (Zip package size: 4.96 MB) and it seems to be working 🎉 I would say a bit slower though (but that could be some network glitch or due to plugin being alpha). I have included my plugin configuration and VS Code version details here. I am happy that you finally found the fix 👍🏻. Looking forward for some technical details about the same (for learning) as well general release of this update for the plugin. |
@alexweininger |
I can confirm, with version 1.6.2-alpha works! |
Fix has been released in version v1.6.2 of the extension. Huge thank you to everyone who helped verify the fix! ❤️ |
Hi, my name is klawrawkz. I am fine. How are you? It's not fixed for me. Nope. Not at all. Hi ho, hi ho, it's off to work I go... Tryin to get some work done... La, la, la, ... tryin to get some work done... Hmm, mmm, mmm, ...tryin to get some work done... I'm not in the error biznizz, so this is no fun, my babe, no fun.... @alexweininger, what am I missing here? Hope you are well. klaw |
@alexweininger, |
All, Regarding @masakawa527's suggestion, I think it would be premature to close this issue unless it is demonstrated and proven conclusively that this "logic" issue/bug is not related to the this "the original function extension" issue/bug (#2844 ). It is my understanding that "logic apps" depend on the "function app" extension. It seems reasonable to suggest that this error is not isolated in the "logic" extension, but perhaps originates from the function portion of the two codependent extensions. What say you? It is also important to preserve this thread because of the relationship between logic and function extensions. If this issue is closed, is there an open issue specific to "logic apps" related to this? |
1.7.3 just released, somehow my VS code extension automatically upgraded me to this. |
I had this issue while trying to publish a logic app...
I ended up targeting my log app via the command line instead (Since I figure this is what the vscode extension is doing behind the scenes)
|
Hi @klawrawkz. Regarding this statement:
This is actually not correct. A long time ago, the Logic Apps extension cloned the Functions Apps extension and then continued to build their extension from there. That means any fixes in Functions does not automatically get picked up by Logic Apps. This was fixed in the package |
Creating this issue as a catch-all for the "ECONNRESET" errors being reported specifically for the "zipdeloy" call. Usually a retry helps fix these errors, but it's possible our retry logic isn't working in this case because it's using a stream to send the zip file and I don't know if we handle restarting the stream on a retry.
It's also possible this could be caused by especially large zip files or especially slow internet.
Update April 13, 2022
The 1.66.0 VS Code update resulted in many users encountering ECONNRESET and 400 Bad Request errors when attempting to deploy their app. A fix has been released in version v1.6.2 of the extension. (comment)
The text was updated successfully, but these errors were encountered: