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

An error occurred during the push operation: Cannot read properties of undefined (reading 'length') #13981

Open
2 tasks done
Paulo-Ferreira-SJ opened this issue Oct 18, 2024 · 0 comments
Labels
pending-triage Issue is pending triage

Comments

@Paulo-Ferreira-SJ
Copy link

How did you install the Amplify CLI?

npm

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

18.17.1

Amplify CLI Version

@aws-amplify/cli@12.13.0

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.

No manual changes made

Describe the bug

I received the message: Cannot read properties of undefined (reading 'length')

Expected behavior

Deploy the amplify app

Reproduction steps

amplify push

Project Identifier

No response

Log output

# Put your logs below this line
On branch staging
Your branch is up to date with 'origin/staging'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git restore <file>..." to discard changes in working directory)
	modified:   amplify/README.md
	modified:   amplify/backend/backend-config.json
	modified:   amplify/backend/types/amplify-dependent-resources-ref.d.ts
	modified:   amplify/cli.json
	modified:   amplify/team-provider-info.json

Untracked files:
  (use "git add <file>..." to include in what will be committed)
	amplify/hooks/

no changes added to commit (use "git add" and/or "git commit -a")
Please note that certain attributes may not be overwritten if you choose to use defaults settings.

You have configured resources that might depend on this Cognito resource.  Updating this Cognito resource could have unintended side effects.

Using service: Cognito, provided by: awscloudformation
 What do you want to do? (Use arrow keys)
❯ Apply default configuration without Social Provider (Federation) 
  Apply default configuration with Social Provider (Federation) 
  Walkthrough all the auth configurations 
  Create or update Cognito user pool groups 
  Create or update Admin queries API 
- Fetching updates to backend environment: staging from the cloud.
- Building resource api/ApiSalesJourney
- Building resource auth/salesjourneybackendbc6d5592
- Building resource storage/salesjourney
✔ Successfully pulled backend environment staging from the cloud.
- Building resource api/ApiSalesJourney
- Building resource auth/salesjourneybackendbc6d5592
- Building resource storage/salesjourney

    Current Environment: staging
    
┌──────────┬──────────────────────────────────────────┬───────────┬───────────────────┐
│ Category │ Resource name                            │ Operation │ Provider plugin   │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Api      │ ApiSalesJourney                          │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Auth     │ salesjourneybackendbc6d5592              │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ accessHierarchies                        │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ accounts                                 │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ blockingObjects                          │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ customFields                             │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ customers                                │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ domains                                  │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ dynamicMargins                           │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ forkData                                 │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ generatePdf                              │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ governance                               │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ health                                   │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ integrations                             │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ leads                                    │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ notifications                            │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ paymentConditions                        │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ paymentMethods                           │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ plants                                   │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ pricing                                  │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ products                                 │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ public                                   │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ pushNotificationsTrigger                 │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ reports                                  │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ saleOrders                               │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ salesjourneybackendbc6d5592CustomMessage │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ scheduledEmails                          │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ squads                                   │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ stocks                                   │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ support                                  │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ users                                    │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Function │ webhooks                                 │ Update    │ awscloudformation │
├──────────┼──────────────────────────────────────────┼───────────┼───────────────────┤
│ Storage  │ salesjourney                             │ Update    │ awscloudformation │
└──────────┴──────────────────────────────────────────┴───────────┴───────────────────┘
🛑 Cannot read properties of undefined (reading 'length')

Learn more at: https://docs.amplify.aws/cli/project/troubleshooting/

Session Identifier: 290b8a44-fd38-4bc0-b5ee-cdbeb1eb4c4b

Additional information

Session Identifier: 290b8a44-fd38-4bc0-b5ee-cdbeb1eb4c4b

After consulting other issues, in a similar unresolved problem, there was a suggestion to use version 14.x of Node. I tested it, and the same error occurred.

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.
@Paulo-Ferreira-SJ Paulo-Ferreira-SJ added the pending-triage Issue is pending triage label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-triage Issue is pending triage
Projects
None yet
Development

No branches or pull requests

1 participant