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

Amplify subdomain cannot point to a non-existent branch #3054

Closed
1 task
f-laino opened this issue Dec 27, 2024 · 2 comments
Closed
1 task

Amplify subdomain cannot point to a non-existent branch #3054

f-laino opened this issue Dec 27, 2024 · 2 comments
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.

Comments

@f-laino
Copy link

f-laino commented Dec 27, 2024

Describe the bug

updateDomainAssociation request throw a Client Exception A subdomain cannot point to a non-existent branch

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

domainAssociation response

Current Behavior

Error executing "UpdateDomainAssociation" on "https://amplify.eu-west-1.amazonaws.com/apps/xyz/domains/my-root-domain.com"; AWS HTTP error: Client error:  ▶
{"message":"A subdomain cannot point to a non-existent branch"}

(Obviously my-root-domain.com and xyz are placeholder here)

image
image
image

Reproduction Steps

$amplify = new AmplifyClient([
                'credentials' => [
                    'key' => MY_KEY_ID,
                    'secret' => MY_SECRET,
                ],
                'region' => DEFAULT_REGION,
            ]);
$amplify->updateDomainAssociation([
                'appId' => 'xyz',
                'domainName' => 'my-root-domain.com',
                'subDomainSettings' => [
                    [
                        'branchName' => 'my-branch-name',
                        'prefix' => 'my-subdomain',
                    ],
                ]
            ]);

Possible Solution

No response

Additional Information/Context

No response

SDK version used

3.334.7

Environment details (Version of PHP (php -v)? OS name and version, etc.)

php 7.4.33

@f-laino f-laino added bug This issue is a bug. needs-triage This issue or PR still needs to be triaged. labels Dec 27, 2024
@f-laino
Copy link
Author

f-laino commented Dec 27, 2024

Solved: branch name is not the displayed label (i.e. dev-feature-name), but the value on repository (i.e. dev/feature-name)

@f-laino f-laino closed this as completed Dec 27, 2024
Copy link

This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue is a bug. needs-triage This issue or PR still needs to be triaged.
Projects
None yet
Development

No branches or pull requests

1 participant