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 to pull the backend. #14065

Open
2 tasks done
GrowingCompany opened this issue Jan 9, 2025 · 0 comments
Open
2 tasks done

Failed to pull the backend. #14065

GrowingCompany opened this issue Jan 9, 2025 · 0 comments
Labels
pending-triage Issue is pending triage

Comments

@GrowingCompany
Copy link

How did you install the Amplify CLI?

npm

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

18.20.4

Amplify CLI Version

12.14.0

What operating system are you using?

Mac Sequoia 15.1.1

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

no

Describe the bug

I have a published service in the web and work on making a new project with the same amplify server.
While I'm setting up the project, amplify pull has been failed.

Expected behavior

Succeed pull the backend

Reproduction steps

  1. remove all related files,
  • aws-exports.js
  • amplifyconfiguration.json
  1. command amplify pull

  2. put credentials
    ? Please choose the profile you want to use default
    ? Which app are you working on? ###
    ? Pick a backend environment: master
    ? Choose your default editor: Visual Studio Code
    ✔ Choose the type of app that you're building · javascript
    Please tell us about your project
    ? What javascript framework are you using react
    ? Source Directory Path: src
    ? Distribution Directory Path: build
    ? Build Command: npm run-script build
    ? Start Command: npm run-script start

  3. got failed

Project Identifier

76cd9fdb-58cf-4b29-bc4b-ad21fb9b3f02

Log output

Do you plan on modifying this backend? Yes
⠴ Fetching updates to backend environment: master from the cloud.Overrides functionality is not implemented for this category
✔ Successfully pulled backend environment master from the cloud.
✖ There was an error initializing your environment.
🛑 Failed to pull the backend.

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

PullBackendFault: Failed to pull the backend.
at attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:55:15)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

Unable to parse aws-exports.js. Has this file been modified?
Error: Unable to parse aws-exports.js. Has this file been modified?
at getCurrentAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:301:13)
at getAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:158:35)
at createAWSExports (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/lib/frontend-config-creator.js:150:31)
at Object.createFrontendConfigs (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-frontend-javascript/index.js:49:16)
at AmplifyToolkit.onCategoryOutputsChange (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/extensions/amplify-helpers/on-category-outputs-change.js:49:37)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async initializeEnv (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/initialize-env.js:143:9)
at async onSuccess (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:81:17)
at async attachBackend (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/attach-backend.js:50:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/commands/pull.js:64:9)
at async Object.executeAmplifyCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:194:9)
at async executePluginModuleCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:139:5)
at async executeCommand (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/execution-manager.js:37:9)
at async Object.run (/snapshot/amplify-cli/build/node_modules/@aws-amplify/cli-internal/lib/index.js:121:5)

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.
@GrowingCompany GrowingCompany added the pending-triage Issue is pending triage label Jan 9, 2025
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