-
Notifications
You must be signed in to change notification settings - Fork 824
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 CLI 12.12.0 #13771
Comments
Update. I manage to set cli version to 12.11.1 (there was still a Still the same error with 12.11.1 so 12.12.0 is not the culprit. |
Another update. I then deleted the created backend environment and did a redeploy with amplify cli 12.11.0 and it worked :-) I do not know if the issue was with 12.12.0 or that the first build failed with incorrect node version.... |
Hey @bergmorten, thank you for reaching out. Glad to hear you were able to mitigate the issue, if the issue reoccurs could you try adding |
What I think happen was that even when preBuild phase was failing the amplify-cli created an empty backend environment. So when preBuild phase was fixed and it did checkout an empty invalid environment. It should not have created an empty / invalid environment? The attempts which failed contained these lines:
When I deleted the backend environment it did create a new environment.
|
@bergmorten the branch should pull the backend that the app was connected to. If the backend does not exist it tries to create one for you. |
Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
amplify build console
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.12.0
What operating system are you using?
als2023 (amplify build console)
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
Nope
Describe the bug
I tried to deploy a new app with the new amplify console, and ran into multiple errors.
The error message is that it
Failed to pull the backend
, andThere was an error initializing your environment
. Is this because my first build failed?Expected behavior
Reproduction steps
Try create new app via amplify console, which has a
package.json
with node requirement of node v20.Project Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: