amplify-cli: improve error messaging for "Your socket connection to the server... will be closed"

How did you install the Amplify CLI?

npm

If applicable, what version of Node.js are you using?

v19.0.1

Amplify CLI Version

10.6.2

What operating system are you using?

Ubuntu

Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.

There is an existing override.ts but is the original from functional deployments.

Describe the bug

Initializing an existing project under my own account. Removed the amplify team-provider-info.json file. Getting error on amplify push:

** :~/Documents/DeckAnalyzer$ amplify push ✖ There was an error pulling the backend environment devtwo. 🛑 Packaging overrides failed. Command failed with exit code 1: yarn install

Resolution: There may be errors in your overrides file. If so, fix the errors and try again. Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 23f96950-8041-44f9-8a30-2a76743c0494

**

Expected behavior

Expected project to initialize and deploy.

Reproduction steps

amplify init delete team-provider-info.json amplify push

Project Identifier

Project Identifier: caa1b95f02a190bcb0b4ee7bcb9e7b6f

Log output

# Put your logs below this line


Additional information

No response

Before submitting, please confirm:

  • I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
  • I have removed any sensitive information from my code snippets and submission.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 21 (9 by maintainers)

Most upvoted comments

@Alambre020 I chatted with @josefaidt and he was able to pull the repo and push it without issue. Hopefully we just mindlessly flipped some commands. Let’s try this fresh and make sure to run things strictly in this order:

  1. git clone
  2. remove team-provider-info.json
  3. amplify init
  4. amplify push

@josefaidt Thanks for your time. @Alambre020 or I will post back when we’ve had a chance to retry this.