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

Unable to deploy my React.js app from VSCode #2192

Closed
KarlDreyerJr opened this issue Apr 2, 2022 · 2 comments
Closed

Unable to deploy my React.js app from VSCode #2192

KarlDreyerJr opened this issue Apr 2, 2022 · 2 comments

Comments

@KarlDreyerJr
Copy link

Does this occur consistently?
Repro steps:

This is a React.js application. I've been working on this for months with no issues at all. This morning, I attempted to deploy and received the following errors

2:43:59 PM AscentTrading: Starting deployment...
2:44:00 PM AscentTrading: Creating zip package...
2:44:01 PM AscentTrading: Ignoring files from "appService.zipIgnorePattern"
"node_modules{,/}"
".vscode{,/
}"
2:44:04 PM AscentTrading: Zip package size: 2.47 MB
2:48:52 PM: Error: request to https://[]/api/zipdeploy?isAsync=true&author=VS%20Code failed, reason: read ECONNRESET

When I click on the link above, I get this message : No route registered for '/api/zipdeploy'
1.Create production build
2. Right click and choose deploy

Action: appService.Deploy
Error type: ECONNRESET
Error Message: request to redacted:url failed, reason: read ECONNRESET

Version: 0.23.1
OS: win32
OS Release: 10.0.19042
Product: Visual Studio Code
Product Version: 1.66.0
Language: en

Call Stack
ClientRequest.<anonymous> extension.bundle.js:2:2848728
@alexweininger
Copy link
Member

Until a fix is released in VS Code stable (hopefully the next major release), here are some options:

  1. Wait for the fix to come in VS Code Insiders
  2. Deploy via Azure CLI
  3. Downgrade your Azure App Service extension version to v0.21.1 (Mar 04, 2021), we used a different zip deploy method which seems to be working still. Note: it might not work in environments like WSL or Codespaces, which is why we changed our deploy in v0.21.2 (Mar 09, 2021).
  4. Downgrade to the VS Code February 2022 release, where zip deploy is working as discussed and confirmed above.

Here's some information on the bug we suspect is causing the issue with zip deploy.

We suspect that it was a regression in the libuv library caused by libuv/libuv@ce15b84, which was included in Node.JS 16.13.0.

See this issue, and specifically this comment for more information.

@alexweininger
Copy link
Member

alexweininger commented Apr 5, 2022

Closing as a duplicate of #2191. Follow along there, or the corresponding Azure Functions issue for further updates and discussion.

@microsoft microsoft locked and limited conversation to collaborators May 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants