amplify-hosting
amplify-hosting copied to clipboard
error creating Amplify Branch: BadRequestException: Failed to create branch. The branch is deleting for the app. Please wait a few minutes before re-create this branch.
Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the FAQ.
- [X] I have searched for duplicate or closed issues.
- [X] I have read the guide for submitting bug reports.
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
App Id
d9xa3jv6dubk3
Region
eu-west-1
Amplify Hosting feature
Not applicable
Describe the bug
To begin with, wanted to recreate an Amplify branch. Deleted the previous one for the same app, and now cannot recreate it (same name) with the message that the old one is still deleting. It has been like this for 4 days.
Expected behavior
New branch should come up correctly.
Reproduction steps
- Delete previous branch.
- Create branch via awscli/awsconsole/terraform with the same name as the deleted branch.
- Get error.
Build Settings
No response
Additional information
No response
Hi @chrysanthoslianos 👋🏽 thank you for raising this issue. I was able to reproduce and have added this to our backlog for prioritization.
Any updates?
Just ran into a similar issue today
Same error here in production :( any update? @hloriana
try this. if you get error for connecting branch develop to env dev.
- create other branch. (eg. develop2).
- connect branch develop2 to env dev.
- connect branch develop to env dev.
- remove connection develop2.
Experienced the same error. Can't re-create the main branch, branches with different names do work.
same issue today, can not reconnect dev branch
In my case it seemed i had to wait a few minutes before trying to reconnect the branch again.
any updates?
How many minutes?
@hloriana why was issue #2152 closed as duplicate? To me it is a different issue, the errors are different
Hi, same doubt as @ludokx: why issue #2152 is closed as duplicate? I still have the problem with duplicated branch error and with no answers there nor here.
It could be related with Amplify CLI version updates?
Getting this error now. How long do I need to wait? Has been way more than a few minutes.
At the very bare minimum, the error message text is misleading:
Failed to create branch. The branch master is deleting for the app <appname>. Please wait a few minutes before re-create this branch.